Struct VertexElementDescription
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
Describes a single element of a vertex.
public struct VertexElementDescription : IEquatable<VertexElementDescription>
- Implements
- Inherited Members
Constructors
VertexElementDescription(string, VertexElementFormat, VertexElementSemantic)
Constructs a new VertexElementDescription.
public VertexElementDescription(string name, VertexElementFormat format, VertexElementSemantic semantic)
Parameters
namestringThe name of the element.
formatVertexElementFormatThe format of the element.
semanticVertexElementSemanticThe semantic type of the element.
VertexElementDescription(string, VertexElementSemantic, VertexElementFormat)
Constructs a new VertexElementDescription describing a per-vertex element.
public VertexElementDescription(string name, VertexElementSemantic semantic, VertexElementFormat format)
Parameters
namestringThe name of the element.
semanticVertexElementSemanticThe semantic type of the element.
formatVertexElementFormatThe format of the element.
VertexElementDescription(string, VertexElementSemantic, VertexElementFormat, uint)
Constructs a new VertexElementDescription.
public VertexElementDescription(string name, VertexElementSemantic semantic, VertexElementFormat format, uint offset)
Parameters
namestringThe name of the element.
semanticVertexElementSemanticThe semantic type of the element.
formatVertexElementFormatThe format of the element.
offsetuintThe offset in bytes from the beginning of the vertex.
Fields
Format
The format of the element.
public VertexElementFormat Format
Field Value
Name
The name of the element.
public string Name
Field Value
Offset
The offset in bytes from the beginning of the vertex.
public uint Offset
Field Value
Semantic
The semantic type of the element. NOTE: When using NeoVeldrid.SPIRV, all vertex elements will use TextureCoordinate.
public VertexElementSemantic Semantic
Field Value
Methods
Equals(VertexElementDescription)
Element-wise equality.
public bool Equals(VertexElementDescription other)
Parameters
otherVertexElementDescriptionThe instance to compare to.
Returns
- bool
True if all elements are equal; false otherswise.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.