java.lang.Object | ||
↳ | android.renderscript.BaseObj | |
↳ | android.renderscript.Type |
Type is an allocation template. It consists of an Element and one or more dimensions. It describes only the layout of memory but does not allocate any storage for the data that is described.
A Type consists of several dimensions. Those are X, Y, Z, LOD (level of detail), Faces (faces of a cube map). The X,Y,Z dimensions can be assigned any positive integral value within the constraints of available memory. A single dimension allocation would have an X dimension of greater than zero while the Y and Z dimensions would be zero to indicate not present. In this regard an allocation of x=10, y=1 would be considered 2 dimensionsal while x=10, y=0 would be considered 1 dimensional.
The LOD and Faces dimensions are booleans to indicate present or not present.
For more information about creating an application that uses Renderscript, read the Renderscript developer guide.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Type.Builder | Builder class for Type. | |||||||||
|
Type.CubemapFace |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Return the total number of accessable cells in the Type.
|
|||||||||
|
|
Return the element associated with this Type.
|
|||||||||
|
|
Return the value of the X dimension.
|
|||||||||
|
|
Return the value of the Y dimension or 0 for a 1D allocation.
|
|||||||||
|
|
Return the value of the Z dimension or 0 for a 1D or 2D allocation.
|
|||||||||
|
|
Return if the Type is a cube map.
|
|||||||||
|
|
Return if the Type has a mipmap chain.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
|||||||||||
![]() |
Return the total number of accessable cells in the Type.
Return the element associated with this Type.
Return the value of the Y dimension or 0 for a 1D allocation.
Return the value of the Z dimension or 0 for a 1D or 2D allocation.
Return if the Type has a mipmap chain.