Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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" (
StructuredBuffer<T>
or
RWStructuredBuffer<T>
).

Fields

Value

Description

AppendAppend-consume ComputeBuffer type.
ConstantComputeBuffer that you can use as a constant buffer (uniform buffer).
CounterComputeBuffer with a counter.
DefaultDefault ComputeBuffer type (structured buffer).
IndirectArgumentsComputeBuffer used for Graphics.DrawProceduralIndirect, ComputeShader.DispatchIndirect or Graphics.DrawMeshInstancedIndirect arguments.
RawRaw ComputeBuffer type (byte address buffer).
StructuredComputeBuffer that you can use as a structured buffer.