ComputeBufferType
ComputeBuffer type.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Enum
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
[Flags]public enum ComputeBufferType
Remarks
Different types of compute buffers map to different usage and declarations in HLSL shaders. Default type is "structured buffer" ( or ).
StructuredBuffer<T>RWStructuredBuffer<T>Fields
Value | Description |
|---|---|
| Append | Append-consume ComputeBuffer type. |
| Constant | ComputeBuffer that you can use as a constant buffer (uniform buffer). |
| Counter | ComputeBuffer with a counter. |
| Default | Default ComputeBuffer type (structured buffer). |
| IndirectArguments | ComputeBuffer used for Graphics.DrawProceduralIndirect, ComputeShader.DispatchIndirect or Graphics.DrawMeshInstancedIndirect arguments. |
| Raw | Raw ComputeBuffer type (byte address buffer). |
| Structured | ComputeBuffer that you can use as a structured buffer. |