Implement basic allocation readback. Add Get height, width to ScriptC_Lib.

This commit is contained in:
Jason Sams
2009-08-10 14:55:26 -07:00
parent c028d09409
commit 40a29e8e28
10 changed files with 89 additions and 50 deletions

View File

@@ -74,6 +74,15 @@ public class Allocation extends BaseObj {
mRS.nAllocationSubData2D(mID, xoff, yoff, w, h, d);
}
public void readData(int[] d) {
mRS.nAllocationRead(mID, d);
}
public void readData(float[] d) {
mRS.nAllocationRead(mID, d);
}
public class Adapter1D extends BaseObj {
Adapter1D(int id, RenderScript rs) {
super(rs);