summaryrefslogtreecommitdiffstats
path: root/graphics/java
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-01-04 16:52:27 -0800
committerJason Sams <rjsams@android.com>2010-01-04 16:52:27 -0800
commite17964e150e459bacced5658ae36fe1c56082e37 (patch)
treed9a3f9bf24dcc509d8475e978c262d702cfb0bf3 /graphics/java
parent7d46f612a25fc9f190358e9bd807b71d424ce7d2 (diff)
downloadframeworks_base-e17964e150e459bacced5658ae36fe1c56082e37.zip
frameworks_base-e17964e150e459bacced5658ae36fe1c56082e37.tar.gz
frameworks_base-e17964e150e459bacced5658ae36fe1c56082e37.tar.bz2
Add RS support for generic attribs as input to vertex programs.
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/renderscript/RenderScript.java2
-rw-r--r--graphics/java/android/renderscript/Type.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java
index cc97a8f..b558de0 100644
--- a/graphics/java/android/renderscript/RenderScript.java
+++ b/graphics/java/android/renderscript/RenderScript.java
@@ -76,8 +76,6 @@ public class RenderScript {
native void nContextBindProgramFragment(int pf);
native void nContextBindProgramVertex(int pf);
native void nContextBindProgramRaster(int pr);
- native void nContextAddDefineI32(String name, int value);
- native void nContextAddDefineF(String name, float value);
native void nContextPause();
native void nContextResume();
native int nContextGetMessage(int[] data, boolean wait);
diff --git a/graphics/java/android/renderscript/Type.java b/graphics/java/android/renderscript/Type.java
index 8e59a31..62d3867 100644
--- a/graphics/java/android/renderscript/Type.java
+++ b/graphics/java/android/renderscript/Type.java
@@ -34,6 +34,9 @@ public class Type extends BaseObj {
private int mNativeCache;
Class mJavaClass;
+ public Element getElement() {
+ return mElement;
+ }
public int getX() {
return mDimX;