AllocationUsage Enum

Definition

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

GraphicsConstants 8

GRAPHICS_CONSTANTS The allocation will be used as the source of shader constants by one or more programs.

GraphicsRenderTarget 16
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.

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.

Script 1

The usage of the allocation.

Shared 128

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.

Applies to