Describes a single element of a vertex format.
sealed class
|
VertexElement
|
implements
|
IComparable<VertexElement>
|
||
IEquatable<VertexElement>
|
The number of data tuples in this vertex format element.
public
readonly
field
|
Count
|
||
type
|
int32
|
The offset to the first byte of this element in the vertex.
public
readonly
field
|
Offset
|
||
type
|
int32
|
Size of this element in the vertex, in bytes.
public
property
|
Size
{
get
}
|
||
type
|
int32
|
||
value
|
|
The
size
in
bytes
or
0
if
this
is
a
placeholder
for
Usage.
|
The data type of this vertex format element or Unknown if this is a placeholder for Usage.
public
readonly
field
|
Type
|
||
type
|
VertexElementType
|
The usage semantics of this vertex format element.
public
readonly
field
|
Usage
|
||
type
|
VertexElementUsage
|
Creates a new instance of VertexElement.
public
constructor
|
VertexElement
(int32 offset,
VertexElementUsage usage,
VertexElementType type,
int32 count)
|
||
params
|
offset
|
[>=0]
|
The offset to the first byte of this element in the vertex. |
usage
|
The usage semantics of the vertex format element. | ||
type
|
The data type of the vertex format element. Set to Unknown to create an empty placeholder for usage. | ||
count
|
[0..4]
|
The
number
of
data
tuples
in
the
vertex
format
element.
Set
to
0
to
create
an
empty
placeholder
for
usage.
|
Compares this object with the given one.
[Pure]
|
||||
public
method
|
CompareTo
(VertexElement other)
|
|||
type
|
int32
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
<
0
:
if
this
object
is
less
than
other, = 0 : if this object is equal to other, > 0 : if this object is greater than other. |
|||
implements
|
IComparable.CompareTo
|
Compares this object with the given one.
[Pure]
|
||||
public
method
|
Equals
(VertexElement 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
|
Compares this object with the given one.
[Pure]
|
||||
public
override
method
|
Equals
(object other)
|
|||
type
|
bool
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
true
if
this
object
is
equal
to
other,
false
if
not.
|
[Pure]
|
||||
public
override
method
|
GetHashCode
()
|
|||
type
|
int32
|