Home | History | Annotate | Download | only in renderscript

Lines Matching full:allocation

23 public class AllocationAdapter extends Allocation {
26 AllocationAdapter(long id, RenderScript rs, Allocation alloc, Type t) {
96 * type being adapted. The base allocation must have mipmaps.
105 throw new RSInvalidStateException("Cannot set LOD when the allocation type does not include mipmaps.");
117 * Set the active Face. The base allocation must be of a type
124 throw new RSInvalidStateException("Cannot set Face when the allocation type does not include faces.");
141 * the allocation being adapted.
147 throw new RSInvalidStateException("Cannot set X greater than dimension of allocation.");
153 throw new RSInvalidStateException("Cannot set (X + window) which would be larger than dimension of allocation.");
162 * the allocation being adapted. The base allocation must
169 throw new RSInvalidStateException("Cannot set Y when the allocation type does not include Y dim.");
172 throw new RSInvalidStateException("Cannot set Y greater than dimension of allocation.");
178 throw new RSInvalidStateException("Cannot set (Y + window) which would be larger than dimension of allocation.");
187 * the allocation being adapted. The base allocation must
194 throw new RSInvalidStateException("Cannot set Z when the allocation type does not include Z dim.");
197 throw new RSInvalidStateException("Cannot set Z greater than dimension of allocation.");
203 throw new RSInvalidStateException("Cannot set (Z + window) which would be larger than dimension of allocation.");
215 throw new RSInvalidStateException("Cannot set arrayNum when the allocation type does not include arrayNum dim.");
218 throw new RSInvalidStateException("Cannot set arrayNum greater than dimension of allocation.");
224 throw new RSInvalidStateException("Cannot set (arrayNum + window) which would be larger than dimension of allocation.");
231 static public AllocationAdapter create1D(RenderScript rs, Allocation a) {
238 static public AllocationAdapter create2D(RenderScript rs, Allocation a) {
247 * Create an arbitrary window into the base allocation.
251 * to the dimensions in the source allocation. A dimension
252 * present in the allocation that is not present in the type
255 * If a dimension is present in both the type and allocation, one of
258 * If the type is smaller than the allocation, a window will be
263 * If the type and allocation dimension are of the same size,
266 static public AllocationAdapter createTyped(RenderScript rs, Allocation a, Type t) {
274 throw new RSInvalidStateException("Element must match Allocation type.");
287 throw new RSInvalidStateException("Type cannot have dimension larger than the source allocation.");
293 throw new RSInvalidStateException("Type cannot have dimension larger than the source allocation.");
307 * Override the Allocation resize. Resizing adapters is not