diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2010-08-31 12:02:01 -0700 |
|---|---|---|
| committer | Alex Sakhartchouk <alexst@google.com> | 2010-08-31 12:02:01 -0700 |
| commit | 8442e0bffe0cdf731449d16494da35f9df956cee (patch) | |
| tree | af8ff8562b5799b43de9aed1542f8681f5ce395f /libs/rs/rsProgram.h | |
| parent | 6dabe240ed0adcf74d0b5eed37d7085095e20ffd (diff) | |
| download | frameworks_base-8442e0bffe0cdf731449d16494da35f9df956cee.zip frameworks_base-8442e0bffe0cdf731449d16494da35f9df956cee.tar.gz frameworks_base-8442e0bffe0cdf731449d16494da35f9df956cee.tar.bz2 | |
Fixing uniform binding for fragment shader.
Updating the glsl fragment shader to color the lights.
Change-Id: I6f850d1aa22059a2974e379f652f7e99d6a799fb
Diffstat (limited to 'libs/rs/rsProgram.h')
| -rw-r--r-- | libs/rs/rsProgram.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/rs/rsProgram.h b/libs/rs/rsProgram.h index 86f85fb..ddc5e8a 100644 --- a/libs/rs/rsProgram.h +++ b/libs/rs/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; |
