summaryrefslogtreecommitdiffstats
path: root/graphics/jni
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2010-11-08 15:10:52 -0800
committerAlex Sakhartchouk <alexst@google.com>2010-11-08 15:10:52 -0800
commit9d71e2180062931416092f26276a07e55b318f62 (patch)
tree4e649a7ff122348fc2ed2961b3c280a989327242 /graphics/jni
parent5b59e02eb542f016866985945859b033e94f9f0b (diff)
downloadframeworks_base-9d71e2180062931416092f26276a07e55b318f62.zip
frameworks_base-9d71e2180062931416092f26276a07e55b318f62.tar.gz
frameworks_base-9d71e2180062931416092f26276a07e55b318f62.tar.bz2
Moving attrib creation to Mesh. Adding arrays as shader inputs.
Removing fixed size arrays. Change-Id: I0213e403a2f1283dd43f21bea770aeb059561903
Diffstat (limited to 'graphics/jni')
-rw-r--r--graphics/jni/android_renderscript_RenderScript.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/jni/android_renderscript_RenderScript.cpp b/graphics/jni/android_renderscript_RenderScript.cpp
index 1cc6dc1..77cbc10 100644
--- a/graphics/jni/android_renderscript_RenderScript.cpp
+++ b/graphics/jni/android_renderscript_RenderScript.cpp
@@ -1152,6 +1152,14 @@ nMeshBindIndex(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jint alloc
rsMeshBindIndex(con, (RsMesh)mesh, (RsAllocation)alloc, primID, slot);
}
+static void
+nMeshInitVertexAttribs(JNIEnv *_env, jobject _this, RsContext con, jint mesh)
+{
+ LOG_API("nMeshInitVertexAttribs, con(%p), Mesh(%p)", con, (RsMesh)mesh);
+ rsMeshInitVertexAttribs(con, (RsMesh)mesh);
+}
+
+
static jint
nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh)
{
@@ -1334,6 +1342,7 @@ static JNINativeMethod methods[] = {
{"rsnMeshCreate", "(III)I", (void*)nMeshCreate },
{"rsnMeshBindVertex", "(IIII)V", (void*)nMeshBindVertex },
{"rsnMeshBindIndex", "(IIIII)V", (void*)nMeshBindIndex },
+{"rsnMeshInitVertexAttribs", "(II)V", (void*)nMeshInitVertexAttribs },
{"rsnMeshGetVertexBufferCount", "(II)I", (void*)nMeshGetVertexBufferCount },
{"rsnMeshGetIndexCount", "(II)I", (void*)nMeshGetIndexCount },