Android.Renderscripts.AllocationUsage Enumeration
Enumerates values returned by several methods of Android.Renderscripts.AllocationUsage and taken as a parameter of several methods of Android.Renderscripts.Allocation.

Syntax

public enum AllocationUsage

Remarks

Enumerates values returned by the following: and taken as a parameter of the following: .

Members

Member NameDescription
GraphicsConstantsGRAPHICS_CONSTANTS The allocation will be used as the source of shader constants by one or more programs.
GraphicsRenderTargetUSAGE_GRAPHICS_RENDER_TARGET The allocation will be used as a target for offscreen rendering
GraphicsTextureGRAPHICS_TEXTURE The allocation will be used as a texture source by one or more graphics programs.
GraphicsVertexGRAPHICS_VERTEX The allocation will be used as a graphics mesh.
IoInputUSAGE_IO_INPUT The allocation will be used as SurfaceTexture consumer. This usage will cause the allocation to be created read only.
IoOutputUSAGE_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.
ScriptThe 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.
SharedUSAGE_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