共用方式為


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

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
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

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