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