Android APIs
public class

AllocationAdapter

extends Allocation
java.lang.Object
   ↳ android.renderscript.BaseObj
     ↳ android.renderscript.Allocation
       ↳ android.renderscript.AllocationAdapter

Class Overview

Only intended for use by generated reflected code.

Summary

[Expand]
Inherited Constants
From class android.renderscript.Allocation
Public Methods
static AllocationAdapter create1D(RenderScript rs, Allocation a)
static AllocationAdapter create2D(RenderScript rs, Allocation a)
synchronized void resize(int dimX)
This method is deprecated. RenderScript objects should be immutable once created. The replacement is to create a new allocation and copy the contents.
void setFace(Type.CubemapFace cf)
Set the active Face.
void setLOD(int lod)
Set the active LOD.
void setY(int y)
Set the active Y.
void setZ(int z)
Set the active Z.
[Expand]
Inherited Methods
From class android.renderscript.Allocation
From class android.renderscript.BaseObj
From class java.lang.Object

Public Methods

public static AllocationAdapter create1D (RenderScript rs, Allocation a)

Added in API level 14

public static AllocationAdapter create2D (RenderScript rs, Allocation a)

Added in API level 11

public synchronized void resize (int dimX)

Added in API level 11

This method is deprecated.
RenderScript objects should be immutable once created. The replacement is to create a new allocation and copy the contents.

Override the Allocation resize. Resizing adapters is not allowed and will throw a RSInvalidStateException.

Parameters
dimX ignored.

public void setFace (Type.CubemapFace cf)

Added in API level 11

Set the active Face. The base allocation must be of a type that includes faces.

Parameters
cf The face to make active.

public void setLOD (int lod)

Added in API level 11

Set the active LOD. The LOD must be within the range for the type being adapted. The base allocation must have mipmaps. Because this changes the dimensions of the adapter the current Y and Z will be reset.

Parameters
lod The LOD to make active.

public void setY (int y)

Added in API level 11

Set the active Y. The y value must be within the range for the allocation being adapted. The base allocation must contain the Y dimension.

Parameters
y The y to make active.

public void setZ (int z)

Added in API level 11

Set the active Z. The z value must be within the range for the allocation being adapted. The base allocation must contain the Z dimension.

Parameters
z The z to make active.