Skip to content

GraphicsAPI reference

Struct VertexAttribute

Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device

One vertex attribute.

C#
public readonly struct VertexAttribute : IEquatable<VertexAttribute>

Implements

IEquatable<VertexAttribute>

Constructors

VertexAttribute(int, VertexFormat, int)

One vertex attribute.

C#
public VertexAttribute(int Location, VertexFormat Format, int Offset)

Parameters

Location int

Shader input location (HLSL TEXCOORD<location>).

Format VertexFormat

Element format.

Offset int

Byte offset in the vertex.

Properties

Format

Element format.

C#
public VertexFormat Format { get; init; }

Property Value

VertexFormat

Location

Shader input location (HLSL TEXCOORD<location>).

C#
public int Location { get; init; }

Property Value

int

Offset

Byte offset in the vertex.

C#
public int Offset { get; init; }

Property Value

int

Methods

Deconstruct(out int, out VertexFormat, out int)

C#
public void Deconstruct(out int Location, out VertexFormat Format, out int Offset)

Parameters

Location int

Format VertexFormat

Offset int

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(VertexAttribute)

C#
public bool Equals(VertexAttribute other)

Parameters

other VertexAttribute

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(VertexAttribute, VertexAttribute)

C#
public static bool operator ==(VertexAttribute left, VertexAttribute right)

Parameters

left VertexAttribute

right VertexAttribute

Returns

bool

operator !=(VertexAttribute, VertexAttribute)

C#
public static bool operator !=(VertexAttribute left, VertexAttribute right)

Parameters

left VertexAttribute

right VertexAttribute

Returns

bool