GraphicsAPI reference
Struct VertexAttribute
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
One vertex attribute.
public readonly struct VertexAttribute : IEquatable<VertexAttribute>Implements
Constructors
VertexAttribute(int, VertexFormat, int)
One vertex attribute.
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.
public VertexFormat Format { get; init; }Property Value
Location
Shader input location (HLSL TEXCOORD<location>).
public int Location { get; init; }Property Value
Offset
Byte offset in the vertex.
public int Offset { get; init; }Property Value
Methods
Deconstruct(out int, out VertexFormat, out int)
public void Deconstruct(out int Location, out VertexFormat Format, out int Offset)Parameters
Location int
Format VertexFormat
Offset int
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(VertexAttribute)
public bool Equals(VertexAttribute other)Parameters
other VertexAttribute
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(VertexAttribute, VertexAttribute)
public static bool operator ==(VertexAttribute left, VertexAttribute right)Parameters
left VertexAttribute
right VertexAttribute
Returns
operator !=(VertexAttribute, VertexAttribute)
public static bool operator !=(VertexAttribute left, VertexAttribute right)Parameters
left VertexAttribute
right VertexAttribute