Version: 2021.3

描述

GraphicsBuffer can be used as an indirect argument buffer for indirect draws and dispatches.

Indirect arguments buffers are used for Graphics.DrawProceduralIndirect, ComputeShader.DispatchIndirect or Graphics.DrawMeshInstancedIndirect.

The buffer size must be a minimum of 12 bytes. The underlying DirectX 11 unordered access view format will be R32_UINT, and shader resource view format will be R32 typeless.

See Also: GraphicsBuffer, ComputeShader, Material.SetBuffer, GraphicsBuffer.CopyCount.