Skip to content

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

create overloads

Synopses

Declared in <litefx/backends/dx12.hpp>

Creates a new DirectX 12 input assembler state as a copy from another one.

[[dllimport, dllexport]] static auto create(DirectX12InputAssembler const& other);

» more...

Creates a new DirectX 12 input assembler state.

[[dllimport, dllexport]] static auto create(
    PrimitiveTopology primitiveTopology,
    UInt32 controlPoints = 1);

» more...

Creates a new DirectX 12 input assembler state.

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

» more...

Return Value

A shared pointer to the newly created input assembler instance.

Parameters

NameDescription
otherThe input assembler state to copy.
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.
vertexBufferLayoutsThe vertex buffer layouts supported by the input assembler state. Each layout must have a unique binding.
indexBufferLayoutThe index buffer layout.