Skip to content

LiteFX::Rendering::Backends::DirectX12VertexBufferLayout::create

Creates a new vertex buffer layout.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] static auto create(
    size_t vertexSize,
    UInt32 binding = 0,
    VertexBufferInputRate inputRate = VertexBufferInputRate::Vertex);

Return Value

A shared pointer to the newly created vertex buffer layout.

Parameters

NameDescription
vertexSizeThe overall size of a single vertex.
bindingThe binding point of the vertex buffers using this layout.
inputRateThe rate at which the vertex buffer is made available to the vertex shader.