diff options
author | Jason Sams <rjsams@android.com> | 2010-01-06 11:57:52 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-01-06 12:01:51 -0800 |
commit | 433eca30b2efe0cf84bbda33f2dfdfd6dcafaf59 (patch) | |
tree | 9840a641c7663c925678184ad687181554ed9da4 /rsProgram.h | |
parent | 2d4445ba2c29342bee37612da1ea3db56553af2b (diff) | |
download | rs-433eca30b2efe0cf84bbda33f2dfdfd6dcafaf59.tar.gz |
More complete support for named attribs. Adds user typed attribs as available to programVertex. Non user attribs are not treated like user for GL2 for simplicity.
Diffstat (limited to 'rsProgram.h')
-rw-r--r-- | rsProgram.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rsProgram.h b/rsProgram.h index dc3a57c3..4bb7802f 100644 --- a/rsProgram.h +++ b/rsProgram.h @@ -42,6 +42,8 @@ public: void bindAllocation(Allocation *); virtual void createShader(); + bool isUserProgram() const {return mUserShader.size() > 0;} + void bindTexture(uint32_t slot, Allocation *); void bindSampler(uint32_t slot, Sampler *); |