LiteFX::Rendering::Backends::VulkanInputAssembler::create¶
Creates a new Vulkan input assembler state.
Synopsis¶
Declared in <litefx/backends/vulkan.hpp>
[[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 |
|---|---|
| vertexBufferLayouts | The vertex buffer layouts supported by the input assembler state. Each layout must have a unique binding. |
| indexBufferLayout | The index buffer layout. |
| 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. |