LiteFX::Rendering::Backends::DirectX12VertexBufferLayoutBuilder::withAttribute¶
Adds an attribute to the vertex buffer layout.
Synopsis¶
Declared in <litefx/rendering_builders.hpp>
template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withAttribute(this
TSelf&& self,
BufferAttribute&& attribute);
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| attribute | The attribute to add to the layout. |