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¶
| Name | Description |
|---|---|
| vertexSize | The overall size of a single vertex. |
| binding | The binding point of the vertex buffers using this layout. |
| inputRate | The rate at which the vertex buffer is made available to the vertex shader. |