文档

Unity Engine

Unity Engine

Raw

GraphicsBuffer can be used as a raw byte-address buffer.
阅读时间1 分钟最后更新于 1 个月前

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.
See Microsoft's HLSL documentation on ByteAddressBuffer and RWByteAddressBuffer.