summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsProgram.h
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-12-15 13:00:25 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-12-15 13:00:25 -0800
commitb686ec70445226d3f865b6e838b3f2cdf034ca31 (patch)
tree521af59aa15cbe1dec696067f0749c7e9f4006a3 /libs/rs/rsProgram.h
parente2f126cc30f2449ff32f343565c974ede9455f2c (diff)
parent0011bcf57ff711a221a3a4c73f2a79125111647d (diff)
downloadframeworks_base-b686ec70445226d3f865b6e838b3f2cdf034ca31.zip
frameworks_base-b686ec70445226d3f865b6e838b3f2cdf034ca31.tar.gz
frameworks_base-b686ec70445226d3f865b6e838b3f2cdf034ca31.tar.bz2
Merge change I0011bcf5
* changes: Continue development of es2.0 user shader support for renderscript. This change cleans up ProgramVertex creation and adds support for passing input, output, and constant type info.
Diffstat (limited to 'libs/rs/rsProgram.h')
-rw-r--r--libs/rs/rsProgram.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/libs/rs/rsProgram.h b/libs/rs/rsProgram.h
index abd461b..01b4c88 100644
--- a/libs/rs/rsProgram.h
+++ b/libs/rs/rsProgram.h
@@ -33,7 +33,9 @@ public:
const static uint32_t MAX_ATTRIBS = 8;
const static uint32_t MAX_UNIFORMS = 16;
- Program(Context *, Element *in, Element *out);
+ Program(Context *);
+ Program(Context *, const char * shaderText, uint32_t shaderLength,
+ const uint32_t * params, uint32_t paramLength);
virtual ~Program();
void bindAllocation(Allocation *);
@@ -50,8 +52,12 @@ public:
protected:
// Components not listed in "in" will be passed though
// unless overwritten by components in out.
- ObjectBaseRef<Element> mElementIn;
- ObjectBaseRef<Element> mElementOut;
+ ObjectBaseRef<Element> *mInputElements;
+ ObjectBaseRef<Element> *mOutputElements;
+ ObjectBaseRef<Type> *mConstantTypes;
+ uint32_t mInputCount;
+ uint32_t mOutputCount;
+ uint32_t mConstantCount;
ObjectBaseRef<Allocation> mConstants;