class
VertexElement
Describes a single vertex element in a vertex declaration.
Public
Constructors
VertexElement
VertexElement
Methods
GetStreamIndex
Returns index of the vertex buffer from which this element is stored.
GetOffset
Returns an offset into the buffer where this vertex is stored.
This value might be in bytes but doesn't have to be, it's likely to be render API specific.
GetSemantic
Gets a semantic that describes what this element contains.
GetSemanticIndex
Gets an index of this element.
Only relevant when you have multiple elements with the same semantic, for example uv0, uv1.
GetSize
Returns the size of this element in bytes.
GetInstanceStepRate
Returns at what rate do the vertex elements advance during instanced rendering.
Provide zero for default behaviour where each vertex receives the next value from the vertex buffer. Provide a value larger than zero to ensure vertex data is advanced with every instance, instead of every vertex (for example a value of 1 means each instance will retrieve a new value from the vertex buffer, a value of 2 means each second instance will, etc.).
staticGetSizeForType
Returns the size of a base element type.
staticGetComponentCountForType
Returns the number of values in the provided base element type.
For example float4 has four values.
staticGetBestColorVertexElementType
Gets packed color vertex element type used by the active render system.