An immutable list of vertex elements.
sealed class
|
VertexElements
|
implements
|
IEquatable<VertexElements>
|
An empty list of vertex elements.
public
static
readonly
field
|
Empty
|
||
type
|
VertexElements
|
The number of vertex format elements.
public
property
|
Count
{
get
}
|
||
type
|
int32
|
||
value
|
|
The element count. |
Returns the size of this vertex element declaration.
public
property
|
Size
{
get
}
|
||
type
|
int32
|
||
value
|
|
The vertex size, in bytes. |
Creates a new instance of VertexElements.
public
constructor
|
VertexElements
(VertexElementUsage usage,
VertexElementType type,
int32 count)
|
||
params
|
usage
|
Usage of first vertex format element. | |
type
|
Data type of first vertex format element. | ||
count
|
[0..4]
|
Number of data values in first vertex format element. |
Appends the given vertex element using Size as Offset and returns the resulting VertexElements object.
public
method
|
Add
(VertexElement element)
|
||
type
|
VertexElements
|
||
params
|
element
|
[not-null]
|
The vertex format element to append. |
returns
|
|
The resulting vertex elements. |
Appends the given vertex elements using Size as respective Offset and returns the resulting VertexElements object.
public
method
|
Add
(VertexElements elements)
|
||
type
|
VertexElements
|
||
params
|
elements
|
[not-null]
|
The vertex format elements to append. |
returns
|
|
The resulting vertex elements. |
Appends the given vertex element using Size as Offset and returns the resulting VertexElements object.
public
method
|
Add
(VertexElementUsage usage,
VertexElementType type,
int32 count)
|
||
type
|
VertexElements
|
||
params
|
usage
|
Usage of vertex format element. | |
type
|
Data type of vertex format element. | ||
count
|
[0..4]
|
Number of data values in vertex format element. | |
returns
|
|
The resulting vertex elements. |
Compares this object with the given one.
[Pure]
|
||||
public
method
|
Equals
(VertexElements other)
|
|||
type
|
bool
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
true
if
this
object
is
equal
to
other,
false
if
not.
|
|||
implements
|
IEquatable.Equals
|
Returns the index-th vertex format element.
public
method
|
Get
(int32 index)
|
||
type
|
VertexElement
|
||
params
|
index
|
[0..Count-1]
|
Index of vertex format element. |
returns
|
|
The vertex format element. |
Remarks:
The vertex format elements are sorted by their byte offset (see Offset) in ascending order.
[Pure]
|
||||
public
override
method
|
GetHashCode
()
|
|||
type
|
int32
|