Version: 2021.2

Mesh.MeshData.GetVertexBufferStride

切换到手册
public int GetVertexBufferStride (int stream);

参数

stream The vertex data stream index to check for.

返回

int Vertex data size in bytes in this stream, or zero if the stream is not present.

描述

Get the vertex buffer stream stride in bytes.

Meshes usually use a single vertex buffer stream, but it is possible to set up a vertex layout where attributes use different vertex buffers (see SetVertexBufferParams). When you use such a layout, use this function to query the vertex data size in bytes within a given stream.

See Also: vertexBufferCount, GetVertexAttributeOffset, SetVertexBufferParams, Mesh.GetVertexBufferStride.