Syntax
public enum AllocationUsage
Remarks
Enumerates values returned by the following:
and taken as a parameter of the following:
.
Members
Member Name | Description |
---|
GraphicsConstants | GRAPHICS_CONSTANTS The allocation will be used as the source
of shader constants by one or more programs.
|
GraphicsRenderTarget | USAGE_GRAPHICS_RENDER_TARGET The allocation will be used as a
target for offscreen rendering
|
GraphicsTexture | GRAPHICS_TEXTURE The allocation will be used as a texture
source by one or more graphics programs.
|
GraphicsVertex | GRAPHICS_VERTEX The allocation will be used as a graphics
mesh.
|
IoInput | USAGE_IO_INPUT The allocation will be used as SurfaceTexture
consumer. This usage will cause the allocation to be created
read only.
|
IoOutput | USAGE_IO_OUTPUT The allocation will be used as a
SurfaceTexture producer. The dimensions and format of the
SurfaceTexture will be forced to those of the allocation.
|
Script | The usage of the allocation. These signal to renderscript
where to place the allocation in memory.
SCRIPT The allocation will be bound to and accessed by
scripts.
|
Shared | USAGE_SHARED The allocation's backing store will be inherited
from another object (usually a Bitmap); calling appropriate
copy methods will be significantly faster than if the entire
allocation were copied every time.
This is set by default for allocations created with
CreateFromBitmap(RenderScript, Bitmap) in API version 18 and
higher.
|
Requirements
Namespace: Android.Renderscripts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0