diff options
| author | Jason Sams <rjsams@android.com> | 2009-12-23 14:35:29 -0800 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2009-12-23 14:35:29 -0800 |
| commit | 718cd1f322ee5b62b6a49cb36195bcb18a5ab711 (patch) | |
| tree | f2f8c9db5a8141eafa2f1547634d7586fdc6ef04 /libs/rs/rsShaderCache.cpp | |
| parent | ceedafacdb87307234c84196a12eeb6e657d6220 (diff) | |
| download | frameworks_base-718cd1f322ee5b62b6a49cb36195bcb18a5ab711.zip frameworks_base-718cd1f322ee5b62b6a49cb36195bcb18a5ab711.tar.gz frameworks_base-718cd1f322ee5b62b6a49cb36195bcb18a5ab711.tar.bz2 | |
Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures.
This will break some apps, checkings for other projects will follow to unbreak them.
Diffstat (limited to 'libs/rs/rsShaderCache.cpp')
| -rw-r--r-- | libs/rs/rsShaderCache.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/rs/rsShaderCache.cpp b/libs/rs/rsShaderCache.cpp index 8e2af34..311e3f5 100644 --- a/libs/rs/rsShaderCache.cpp +++ b/libs/rs/rsShaderCache.cpp @@ -93,7 +93,10 @@ bool ShaderCache::lookup(Context *rsc, ProgramVertex *vtx, ProgramFragment *frag glBindAttribLocation(pgm, VertexArray::POSITION, "attrib_Position"); glBindAttribLocation(pgm, VertexArray::COLOR, "attrib_Color"); - + //glBindAttribLocation(pgm, VertexArray::NORMAL, "attrib_Normal"); + //glBindAttribLocation(pgm, VertexArray::POINT_SIZE, "attrib_PointSize"); + //glBindAttribLocation(pgm, VertexArray::TEXTURE_0, "attrib_T0"); + //glBindAttribLocation(pgm, VertexArray::TEXTURE_1, "attrib_T1"); //LOGE("e2 %x", glGetError()); glLinkProgram(pgm); |
