Table of Contents

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

name string

The name of the element.

format VertexElementFormat

The format of the element.

semantic VertexElementSemantic

The 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

name string

The name of the element.

semantic VertexElementSemantic

The semantic type of the element.

format VertexElementFormat

The format of the element.

VertexElementDescription(string, VertexElementSemantic, VertexElementFormat, uint)

Constructs a new VertexElementDescription.

public VertexElementDescription(string name, VertexElementSemantic semantic, VertexElementFormat format, uint offset)

Parameters

name string

The name of the element.

semantic VertexElementSemantic

The semantic type of the element.

format VertexElementFormat

The format of the element.

offset uint

The offset in bytes from the beginning of the vertex.

Fields

Format

The format of the element.

public VertexElementFormat Format

Field Value

VertexElementFormat

Name

The name of the element.

public string Name

Field Value

string

Offset

The offset in bytes from the beginning of the vertex.

public uint Offset

Field Value

uint

Semantic

The semantic type of the element. NOTE: When using NeoVeldrid.SPIRV, all vertex elements will use TextureCoordinate.

public VertexElementSemantic Semantic

Field Value

VertexElementSemantic

Methods

Equals(VertexElementDescription)

Element-wise equality.

public bool Equals(VertexElementDescription other)

Parameters

other VertexElementDescription

The 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.