summaryrefslogtreecommitdiff
path: root/rsProgram.h
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2010-08-31 12:02:01 -0700
committerAlex Sakhartchouk <alexst@google.com>2010-08-31 12:02:01 -0700
commit6e9342199959dc9beb5299fefc9775fe8c32620e (patch)
treeb339052dbc7129a821e7a640a1d6b3c418756f85 /rsProgram.h
parentaf83e79895d05ba45c2f8e340f2222dc19e2fffa (diff)
downloadrs-6e9342199959dc9beb5299fefc9775fe8c32620e.tar.gz
Fixing uniform binding for fragment shader.
Updating the glsl fragment shader to color the lights. Change-Id: I6f850d1aa22059a2974e379f652f7e99d6a799fb
Diffstat (limited to 'rsProgram.h')
-rw-r--r--rsProgram.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rsProgram.h b/rsProgram.h
index 86f85fb7..ddc5e8a4 100644
--- a/rsProgram.h
+++ b/rsProgram.h
@@ -72,6 +72,11 @@ protected:
uint32_t mConstantCount;
bool mIsValid;
+ // Applies to vertex and fragment shaders only
+ void appendUserConstants();
+ void setupUserConstants(ShaderCache *sc, bool isFragment);
+ void initAddUserElement(const Element *e, String8 *names, uint32_t *count, const char *prefix);
+
ObjectBaseRef<Allocation> mConstants[MAX_UNIFORMS];
mutable bool mDirty;