Index
GraphicsBuffer can be used as an index buffer.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Index = 2
Remarks
Allows a buffer to be used as an index buffer for Graphics.DrawProcedural and similar low level drawing APIs.
When you construct a GraphicsBuffer of this type, the value of stride must be either 2 (16-bit indices) or 4 (32-bit indices).
DirectX 11 does not allow Index buffers to also be GraphicsBuffer.Target.Structured. For compute shader mesh data access with DirectX 11 compatibility, it is best to use GraphicsBuffer.Target.Raw.