diff options
author | Jason Sams <rjsams@android.com> | 2010-01-12 12:12:28 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-01-12 12:12:28 -0800 |
commit | ea87e96959895ef94cc3aa9576f41a660d2bbf03 (patch) | |
tree | 651c5131fada7c1a2ab55c71e3d6b71901f0832c /libs/rs/rsScriptC_Lib.cpp | |
parent | 917cd4fcda61c63429d73639284f34bb85c97f37 (diff) |
Implement type generation for user uniforms in vertex shader.
Diffstat (limited to 'libs/rs/rsScriptC_Lib.cpp')
-rw-r--r-- | libs/rs/rsScriptC_Lib.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/rs/rsScriptC_Lib.cpp b/libs/rs/rsScriptC_Lib.cpp index 8a0ab710e36f..3ba9cee09934 100644 --- a/libs/rs/rsScriptC_Lib.cpp +++ b/libs/rs/rsScriptC_Lib.cpp @@ -973,6 +973,13 @@ static void SC_uploadToBufferObject(RsAllocation va) rsi_AllocationUploadToBufferObject(rsc, va); } +static void SC_syncToGL(RsAllocation va) +{ + GET_TLS(); + Allocation *a = static_cast<Allocation *>(va); + +} + static void SC_ClearColor(float r, float g, float b, float a) { //LOGE("c %f %f %f %f", r, g, b, a); @@ -1321,6 +1328,9 @@ ScriptCState::SymbolTable_t ScriptCState::gSyms[] = { { "uploadToBufferObject", (void *)&SC_uploadToBufferObject, "void", "(int)" }, + { "syncToGL", (void *)&SC_syncToGL, + "void", "(int)" }, + { "colorFloatRGBAtoUNorm8", (void *)&SC_colorFloatRGBAtoUNorm8, "int", "(float, float, float, float)" }, { "colorFloatRGBto565", (void *)&SC_colorFloatRGBAto565, |