Implement Object readback.
This commit is contained in:
@ -113,6 +113,10 @@ public class Allocation extends BaseObj {
|
||||
mRS.nAllocationSubDataFromObject(mID, mType, 0, o);
|
||||
}
|
||||
|
||||
public void read(Object o) {
|
||||
mRS.nAllocationSubReadFromObject(mID, mType, 0, o);
|
||||
}
|
||||
|
||||
public void subData(int offset, Object o) {
|
||||
mRS.nAllocationSubDataFromObject(mID, mType, offset, o);
|
||||
}
|
||||
|
@ -106,6 +106,7 @@ public class RenderScript {
|
||||
native void nAllocationRead(int id, int[] d);
|
||||
native void nAllocationRead(int id, float[] d);
|
||||
native void nAllocationSubDataFromObject(int id, Type t, int offset, Object o);
|
||||
native void nAllocationSubReadFromObject(int id, Type t, int offset, Object o);
|
||||
|
||||
native void nTriangleMeshBegin(int vertex, int index);
|
||||
native void nTriangleMeshAddVertex_XY (float x, float y);
|
||||
|
Reference in New Issue
Block a user