public class AllocationAdapter extends Allocation
Allocation.MipmapControl, Allocation.OnBufferAvailableListener
USAGE_GRAPHICS_CONSTANTS, USAGE_GRAPHICS_RENDER_TARGET, USAGE_GRAPHICS_TEXTURE, USAGE_GRAPHICS_VERTEX, USAGE_IO_INPUT, USAGE_IO_OUTPUT, USAGE_SCRIPT, USAGE_SHARED
Modifier and Type | Method and Description |
---|---|
static AllocationAdapter |
create1D(RenderScript rs,
Allocation a) |
static AllocationAdapter |
create2D(RenderScript rs,
Allocation a) |
static AllocationAdapter |
createTyped(RenderScript rs,
Allocation a,
Type t)
Create an arbitrary window into the base allocation.
|
void |
resize(int dimX)
Override the Allocation resize.
|
void |
setArray(int arrayNum,
int arrayVal) |
void |
setFace(Type.CubemapFace cf)
Set the active Face.
|
void |
setLOD(int lod)
Set the active LOD.
|
void |
setX(int x)
Set the active X.
|
void |
setY(int y)
Set the active Y.
|
void |
setZ(int z)
Set the active Z.
|
copy1DRangeFrom, copy1DRangeFrom, copy1DRangeFrom, copy1DRangeFrom, copy1DRangeFrom, copy1DRangeFrom, copy1DRangeFromUnchecked, copy1DRangeFromUnchecked, copy1DRangeFromUnchecked, copy1DRangeFromUnchecked, copy1DRangeFromUnchecked, copy1DRangeTo, copy1DRangeTo, copy1DRangeTo, copy1DRangeTo, copy1DRangeTo, copy1DRangeToUnchecked, copy1DRangeToUnchecked, copy1DRangeToUnchecked, copy1DRangeToUnchecked, copy1DRangeToUnchecked, copy2DRangeFrom, copy2DRangeFrom, copy2DRangeFrom, copy2DRangeFrom, copy2DRangeFrom, copy2DRangeFrom, copy2DRangeFrom, copy2DRangeTo, copy2DRangeTo, copy2DRangeTo, copy2DRangeTo, copy2DRangeTo, copy3DRangeFrom, copy3DRangeFrom, copy3DRangeTo, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFromUnchecked, copyFromUnchecked, copyFromUnchecked, copyFromUnchecked, copyFromUnchecked, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyToFieldPacker, createAllocations, createCubemapFromBitmap, createCubemapFromBitmap, createCubemapFromCubeFaces, createCubemapFromCubeFaces, createFromBitmap, createFromBitmap, createFromBitmapResource, createFromBitmapResource, createFromString, createSized, createSized, createTyped, createTyped, createTyped, destroy, finalize, generateMipmaps, getByteBuffer, getBytesSize, getElement, getMipmap, getStride, getSurface, getTimeStamp, getType, getUsage, ioReceive, ioSend, setAutoPadding, setFromFieldPacker, setFromFieldPacker, setFromFieldPacker, setOnBufferAvailableListener, setSurface, syncAll
public void setLOD(int lod)
lod
- The LOD to make active.public void setFace(Type.CubemapFace cf)
cf
- The face to make active.public void setX(int x)
x
- The x to make active.public void setY(int y)
y
- The y to make active.public void setZ(int z)
z
- The z to make active.public void setArray(int arrayNum, int arrayVal)
public static AllocationAdapter create1D(RenderScript rs, Allocation a)
public static AllocationAdapter create2D(RenderScript rs, Allocation a)
public static AllocationAdapter createTyped(RenderScript rs, Allocation a, Type t)
public void resize(int dimX)
resize
in class Allocation
dimX
- ignored.