LiteFX::Rendering::Backends::VulkanInputAssembler::create¶
create overloads
Synopses¶
Declared in <litefx/backends/vulkan.hpp>
Creates a new Vulkan input assembler state as a copy from another one.
[[dllimport, dllexport]] static auto create(VulkanInputAssembler const& other);
Creates a new Vulkan input assembler state.
[[dllimport, dllexport]] static auto create(
PrimitiveTopology primitiveTopology,
UInt32 controlPoints = 1);
Creates a new Vulkan input assembler state.
[[dllimport, dllexport]] static auto create(
Enumerable<SharedPtr<VulkanVertexBufferLayout>>&& vertexBufferLayouts,
SharedPtr<VulkanIndexBufferLayout>&& indexBufferLayout = nullptr,
PrimitiveTopology primitiveTopology = PrimitiveTopology::TriangleList,
UInt32 controlPoints = 1);
Return Value¶
A shared pointer to the newly created input assembler instance.
Parameters¶
| Name | Description |
|---|---|
| other | The input assembler state to copy. |
| primitiveTopology | The primitive topology. |
| controlPoints | The number of control points in a patch primitive. Ignored if primitiveTopology is not PrimitiveTopology::PatchList. Must be a value between 1 and 32. |
| vertexBufferLayouts | The vertex buffer layouts supported by the input assembler state. Each layout must have a unique binding. |
| indexBufferLayout | The index buffer layout. |