文档

Unity Engine

Unity Engine

VertexAttributeDescriptor(VertexAttribute, VertexAttributeFormat, int, int)

Create a VertexAttributeDescriptor structure.
阅读时间1 分钟最后更新于 1 个月前

Definition

public VertexAttributeDescriptor(VertexAttribute attribute = VertexAttribute.Position, VertexAttributeFormat format = VertexAttributeFormat.Float32, int dimension = 3, int stream = 0)

Parameters


Format of the vertex attribute. Default is VertexAttributeFormat.Float32.

dimension

Dimensionality of the vertex attribute (1 to 4). Default is 3.

stream

Vertex buffer stream that the attribute should be placed in. Default is 0.

Remarks