Struct VertexAttribute ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
One attribute of a . An offset of -1 packs it after the last one, and a location of -1 lets the layout place it.
csharp
public readonly record struct VertexAttribute : IEquatable<VertexAttribute>Implements ​
Constructors ​
VertexAttribute(string, DXGI_FORMAT, int, int) ​
One attribute of a . An offset of -1 packs it after the last one, and a location of -1 lets the layout place it.
csharp
public VertexAttribute(string Name, DXGI_FORMAT Format, int OffsetInBytes = -1, int Location = -1)Parameters ​
Name string
Format DXGI_FORMAT
OffsetInBytes int
Location int
VertexAttribute(VertexSlot, DXGI_FORMAT, int) ​
Initializes an attribute supplying a mesh slot.
csharp
public VertexAttribute(VertexSlot slot, DXGI_FORMAT format, int offsetInBytes = -1)Parameters ​
slot VertexSlot
format DXGI_FORMAT
offsetInBytes int
Properties ​
Format ​
csharp
public DXGI_FORMAT Format { get; init; }Property Value ​
Location ​
csharp
public int Location { get; init; }Property Value ​
Name ​
csharp
public string Name { get; init; }Property Value ​
OffsetInBytes ​
csharp
public int OffsetInBytes { get; init; }
