Implement array types

Change-Id: I1b83f21ea2aeaa4b9f5934aadcb69d4a1c1fea20
This commit is contained in:
Jason Sams
2015-02-06 17:45:15 -08:00
parent 1269ff9610
commit 46ba27e3fd
5 changed files with 264 additions and 85 deletions

View File

@@ -591,6 +591,20 @@ public class RenderScript {
rsnAllocationResize1D(mContext, id, dimX);
}
native long rsnAllocationAdapterCreate(long con, long allocId, long typeId);
synchronized long nAllocationAdapterCreate(long allocId, long typeId) {
validate();
return rsnAllocationAdapterCreate(mContext, allocId, typeId);
}
native void rsnAllocationAdapterOffset(long con, long id, int x, int y, int z,
int mip, int face, int a1, int a2, int a3, int a4);
synchronized void nAllocationAdapterOffset(long id, int x, int y, int z,
int mip, int face, int a1, int a2, int a3, int a4) {
validate();
rsnAllocationAdapterOffset(mContext, id, x, y, z, mip, face, a1, a2, a3, a4);
}
native long rsnFileA3DCreateFromAssetStream(long con, long assetStream);
synchronized long nFileA3DCreateFromAssetStream(long assetStream) {
validate();