Class VertexInputLayout
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Interleaved vertex layout of handbuilt geometry, held as the same input layout fields a mesh carries. Element order is buffer order, and offsets pack in declaration order unless given explicitly.
csharp
public sealed class VertexInputLayoutInheritance
Constructors
VertexInputLayout(int, params VertexAttribute[])
Initializes a vertex format from a stride and its attributes in buffer order.
csharp
public VertexInputLayout(int stride, params VertexAttribute[] elements)Parameters
stride int
elements VertexAttribute[]
Properties
Stride
Gets the size in bytes of a single vertex.
csharp
public int Stride { get; }Property Value
Methods
CreateVertexArray(string?, int, int)
Creates a VAO binding one vertex buffer. An index buffer of 0 means non-indexed.
csharp
public int CreateVertexArray(string? debugLabel, int vertexBuffer, int indexBuffer = 0)Parameters
debugLabel string?
vertexBuffer int
indexBuffer int
Returns
Fields()
This format as input layout fields, for the upload path.
csharp
public VBIB.RenderInputLayoutField[] Fields()Returns
FromStruct<TVertex>()
Derives the format of a vertex struct from its fields.
csharp
public static VertexInputLayout FromStruct<TVertex>() where TVertex : structReturns
Type Parameters
TVertex

