LiteFX::Rendering::Backends::VulkanInputAssemblerBuilder::use¶
use overloads
Synopses¶
Declared in <litefx/rendering_builders.hpp>
Adds an index buffer layout to the input assembler. Can only be called once.
template<typename TSelf>
constexpr TSelf&& use(this
TSelf&& self,
SharedPtr<index_buffer_layout_type>&& layout);
Adds a vertex buffer layout to the input assembler. Can be called multiple times.
template<typename TSelf>
constexpr TSelf&& use(this
TSelf&& self,
SharedPtr<vertex_buffer_layout_type>&& layout);
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown if another index buffer layout has already been specified. |
Parameters¶
| Name | Description |
|---|---|
| layout | The index buffer layout to add to the input assembler. |