AllocationUsage Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several methods of AllocationUsage and taken as a parameter of several methods of Allocation.
public enum AllocationUsage
type AllocationUsage =
- Inheritance
-
AllocationUsage
Fields
| Name | Value | Description |
|---|---|---|
| Script | 1 | The usage of the allocation. |
| GraphicsTexture | 2 | GRAPHICS_TEXTURE The allocation will be used as a texture source by one or more graphics programs. |
| GraphicsVertex | 4 | GRAPHICS_VERTEX The allocation will be used as a graphics mesh. |
| GraphicsConstants | 8 | GRAPHICS_CONSTANTS The allocation will be used as the source of shader constants by one or more programs. |
| GraphicsRenderTarget | 16 | The Allocation will be used as a target for offscreen rendering This was deprecated in API level 16. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| IoInput | 32 | USAGE_IO_INPUT The allocation will be used as SurfaceTexture consumer. |
| IoOutput | 64 | USAGE_IO_OUTPUT The allocation will be used as a SurfaceTexture producer. |
| Shared | 128 | The Allocation's backing store will be inherited from another object (usually a Bitmap); copying to or from the original source Bitmap will cause a synchronization rather than a full copy. syncAll(int) may also be used to synchronize the Allocation and the source Bitmap. This is set by default for allocations created with createFromBitmap(RenderScript, Bitmap) in API version 18 and higher. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.