summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2009-09-04 14:42:41 -0700
committer Jason Sams <rjsams@android.com> 2009-09-04 14:42:41 -0700
commitea84a7c51790f9ba5f2194a66d6cf4ea8d879776 (patch)
tree089830bec92dcfb6fb7738f920433a8957b49de0 /libs/rs/rsScriptC.cpp
parent2525a815220652b37e2e390fe8c62394a6d0e574 (diff)
Remove "predefined" elements from Java layer. Static elements continue to exist but are no longer treated as a special version of element.
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r--libs/rs/rsScriptC.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp
index 9d9eb1bf417f..8230cbcf4009 100644
--- a/libs/rs/rsScriptC.cpp
+++ b/libs/rs/rsScriptC.cpp
@@ -286,6 +286,10 @@ void ScriptCState::appendTypes(String8 *str)
char buf[256];
String8 tmp;
+ str->append("struct vec2_s {float x; float y;};");
+ str->append("struct vec3_s {float x; float y; float z;};");
+ str->append("struct vec4_s {float x; float y; float z; float w;};");
+
for (size_t ct=0; ct < MAX_SCRIPT_BANKS; ct++) {
const Type *t = mConstantBufferTypes[ct].get();
if (!t) {