VertexElements
Public / Constructors
VertexElements
2 overloads
Creates a new instance of VertexElements.
Creates a new instance of VertexElements.
Public / Methods
Add
3 overloads
Appends the given vertex element using SizeCompact as VertexElement.Offset and returns the resulting VertexElements object.
Appends the given vertex elements using SizeCompact as respective VertexElement.Offset and returns the resulting VertexElements object.
Appends the given vertex element using SizeCompact as VertexElement.Offset and returns the resulting VertexElements object.
Align
Adjusts this vertex format element list so that SizeAligned becomes a multiple of alignment opt*4.
Get
Returns the index in-th vertex format element.
The vertex format elements are sorted by their byte offset (see VertexElement.Offset) in ascending order.
UsageCounter
Updates the given usage counter by incrementing the value for the given usage semantic.
Writer
Returns an independent IVertexElementWriter object for the index in-th vertex element.
Calling this method multiple times will return the same IVertexElementWriter object per index in.
Public / Attributes
Alignment
Returns the byte alignment of this vertex element declaration.
The default value is 1
, i.e. no alignment.