Version: 2022.3
언어: 한국어

설명

GraphicsBuffer can be used as an index buffer.

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 Structured. For compute shader mesh data access with DirectX 11 compatibility, it is best to use Raw.

See Also: Graphics.RenderPrimitivesIndexed, Graphics.RenderPrimitivesIndexedIndirect, CommandBuffer.DrawProcedural, CommandBuffer.DrawProceduralIndirect, Mesh.indexBufferTarget, Mesh.GetIndexBuffer.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961