summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsShaderCache.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-01-25 12:31:24 -0800
committerJason Sams <rjsams@android.com>2010-01-25 12:41:19 -0800
commitdf48b571144ed0b0a09c735f997cc408c3d22b2b (patch)
tree3c4b6ccdf272b3dde00725c83078306a7df57e9b /libs/rs/rsShaderCache.h
parent882652bf0d78ef06635621a11a07690b7c682a7b (diff)
downloadframeworks_base-df48b571144ed0b0a09c735f997cc408c3d22b2b.zip
frameworks_base-df48b571144ed0b0a09c735f997cc408c3d22b2b.tar.gz
frameworks_base-df48b571144ed0b0a09c735f997cc408c3d22b2b.tar.bz2
Cleanup seperation of Legacy and user attribs. All user programs now use the new names. Legacy vertex attribs are given default names.
Diffstat (limited to 'libs/rs/rsShaderCache.h')
-rw-r--r--libs/rs/rsShaderCache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsShaderCache.h b/libs/rs/rsShaderCache.h
index ede3734..7aa8183 100644
--- a/libs/rs/rsShaderCache.h
+++ b/libs/rs/rsShaderCache.h
@@ -44,6 +44,7 @@ public:
int32_t vtxUniformSlot(uint32_t a) const {return mCurrent->mVtxUniformSlots[a];}
int32_t fragAttribSlot(uint32_t a) const {return mCurrent->mFragAttribSlots[a];}
int32_t fragUniformSlot(uint32_t a) const {return mCurrent->mFragUniformSlots[a];}
+ bool isUserVertexProgram() const {return mCurrent->mUserVertexProgram;}
protected:
typedef struct {
@@ -54,6 +55,7 @@ protected:
int32_t mVtxUniformSlots[Program::MAX_UNIFORMS];
int32_t mFragAttribSlots[Program::MAX_ATTRIBS];
int32_t mFragUniformSlots[Program::MAX_UNIFORMS];
+ bool mUserVertexProgram;
} entry_t;
entry_t *mEntries;
entry_t *mCurrent;