summaryrefslogtreecommitdiff
path: root/rsProgram.h
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-05-05 16:56:27 -0700
committerAlex Sakhartchouk <alexst@google.com>2011-05-05 16:56:27 -0700
commit7f126c78a107257090c6675ea40ffac41516a9dc (patch)
tree29990144572fedf01d559e62139dee01d9f319f5 /rsProgram.h
parentc2c02a88641620f50a69cc174077ac8bbef40478 (diff)
downloadrs-7f126c78a107257090c6675ea40ffac41516a9dc.tar.gz
Moving samplers behind the hal.
Change-Id: I494e5a9d2b599d07b985328b346f1f10ae4972e1
Diffstat (limited to 'rsProgram.h')
-rw-r--r--rsProgram.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/rsProgram.h b/rsProgram.h
index 2922270c..948ba3e0 100644
--- a/rsProgram.h
+++ b/rsProgram.h
@@ -17,7 +17,7 @@
#ifndef ANDROID_RS_PROGRAM_H
#define ANDROID_RS_PROGRAM_H
-#include "rsObjectBase.h"
+#include "rsProgramBase.h"
#include "rsElement.h"
// ---------------------------------------------------------------------------
@@ -28,10 +28,9 @@ namespace renderscript {
#define RS_SHADER_ATTR "ATTRIB_"
#define RS_SHADER_UNI "UNI_"
-class Program : public ObjectBase {
+class Program : public ProgramBase {
public:
- Program(Context *);
Program(Context *, const char * shaderText, uint32_t shaderLength,
const uint32_t * params, uint32_t paramLength);
virtual ~Program();
@@ -43,8 +42,6 @@ public:
void bindTexture(Context *, uint32_t slot, Allocation *);
void bindSampler(Context *, uint32_t slot, Sampler *);
- void forceDirty() const {mDirty = true;}
-
struct Hal {
mutable void *drv;
@@ -75,18 +72,13 @@ public:
protected:
bool mIsInternal;
-
- mutable bool mDirty;
String8 mUserShader;
-
- void logUniform(const Element *field, const float *fd, uint32_t arraySize );
- void setUniform(Context *rsc, const Element *field, const float *fd, int32_t slot, uint32_t arraySize );
void initMemberVars();
};
}
}
-#endif
+#endif // ANDROID_RS_PROGRAM_H