VertexDeclaration.AddField

VertexDeclaration.AddField method

添加新的顶点字段

public VertexField AddField(VertexFieldDataType dataType, VertexFieldSemantic semantic, 
    int index = -1, string alias = null)
参数类型描述
dataTypeVertexFieldDataType顶点字段的数据类型
语义VertexFieldSemantic此字段将用于何处
索引Int32相同字段语义的索引,-1 表示自动生成
别名字符串字段的别名

另请参见