LiteFX::Rendering::Backends::DirectX12VertexBufferLayout::create¶
create overloads
Synopses¶
Declared in <litefx/backends/dx12.hpp>
Creates a copy of a vertex buffer layout.
[[dllimport, dllexport]] static auto create(DirectX12VertexBufferLayout const& other);
Creates a new vertex buffer layout.
[[dllimport, dllexport]] static auto create(
size_t vertexSize,
UInt32 binding = 0,
VertexBufferInputRate inputRate = VertexBufferInputRate::Vertex);
Creates a new vertex buffer layout.
[[dllimport, dllexport]] static auto create(
size_t vertexSize,
Enumerable<BufferAttribute> const& attributes,
UInt32 binding = 0,
VertexBufferInputRate inputRate = VertexBufferInputRate::Vertex);
Return Value¶
A shared pointer to the newly created vertex buffer layout.
Parameters¶
| Name | Description |
|---|---|
| other | The vertex buffer layout to copy. |
| 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. |
| attributes | The vertex attributes. |