VertexDeclaration.AddField

VertexDeclaration.AddField method

Add a new vertex field

public VertexField AddField(VertexFieldDataType dataType, VertexFieldSemantic semantic, 
    int index = -1, string alias = null)
ParameterTypeDescription
dataTypeVertexFieldDataTypeThe data type of the vertex field
semanticVertexFieldSemanticHow will this field used for
indexInt32The index for same field semantic, -1 for auto-generation
aliasStringThe alias name of the field

See Also