Documentation

Unity Engine

Download Unity

Unity Engine

Raw

GraphicsBuffer can be used as a raw byte-address buffer.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Raw = 32

Remarks

In HLSL shaders, this maps to
ByteAddressBuffer
or
RWByteAddressBuffer
. The underlying DirectX 11 format for shader access is typeless R32.
On DirectX 11 and DirectX 12, if a buffer uses both this target and GraphicsBuffer.Target.Structured, shaders can access it only as a raw buffer. Don't bind a buffer that uses this target as a
StructuredBuffer
or
RWStructuredBuffer
.
See Microsoft's HLSL documentation on ByteAddressBuffer and RWByteAddressBuffer.