Skip to content

LiteFX::Rendering::Backends::DirectX12InputAssembler::create

Creates a new DirectX 12 input assembler state.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] static auto create(
    Enumerable<SharedPtr<DirectX12VertexBufferLayout>>&& vertexBufferLayouts,
    SharedPtr<DirectX12IndexBufferLayout>&& indexBufferLayout,
    PrimitiveTopology primitiveTopology = PrimitiveTopology::TriangleList,
    UInt32 controlPoints = 1);

Return Value

A shared pointer to the newly created input assembler instance.

Parameters

NameDescription
vertexBufferLayoutsThe vertex buffer layouts supported by the input assembler state. Each layout must have a unique binding.
indexBufferLayoutThe index buffer layout.
primitiveTopologyThe primitive topology.
controlPointsThe number of control points in a patch primitive. Ignored if primitiveTopology is not PrimitiveTopology::PatchList. Must be a value between 1 and 32.