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(
    PrimitiveTopology primitiveTopology,
    UInt32 controlPoints = 1);

Return Value

A shared pointer to the newly created input assembler instance.

Parameters

NameDescription
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.