VertexAttributeDescriptor(VertexAttribute, VertexAttributeFormat, int, int)
Create a VertexAttributeDescriptor structure.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public VertexAttributeDescriptor(VertexAttribute attribute = VertexAttribute.Position, VertexAttributeFormat format = VertexAttributeFormat.Float32, int dimension = 3, int stream = 0)
Parameters
The VertexAttribute.
Format of the vertex attribute. Default is VertexAttributeFormat.Float32.
Dimensionality of the vertex attribute (1 to 4). Default is 3.
Vertex buffer stream that the attribute should be placed in. Default is 0.
Remarks
Additional Resources: Mesh.SetVertexBufferParams, Mesh.GetVertexAttributes.