Version: 2021.2

GraphicsBufferConstructor

切换到手册
public GraphicsBuffer (GraphicsBuffer.Target target, int count, int stride);

参数

target 选择缓冲区是否可用作顶点或索引缓冲区。
count 缓冲区中元素的数量。
stride 缓冲区中一个元素的大小。对于索引缓冲区,必须是 2 或 4 字节。

描述

创建图形缓冲区。

不再需要时,使用 Release 来释放该缓冲区。

If the buffer size exceeds the value in SystemInfo.maxGraphicsBufferSize, the constructor raises an exception.

另请参阅:Graphics.DrawProcedural

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