Skip to content

LiteFX::Rendering::Backends::DirectX12DescriptorSetLayout::create

Creates a DirectX 12 descriptor set layout.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] static auto create(
    DirectX12Device const& device,
    Enumerable<DirectX12DescriptorLayout> const& descriptorLayouts,
    UInt32 space,
    ShaderStage stages);

Return Value

Returns a shared pointer to the newly created descriptor set layout.

Parameters

NameDescription
deviceThe device, the descriptor set layout is created on.
descriptorLayoutsThe descriptor layouts of the descriptors within the descriptor set.
spaceThe space or set id of the descriptor set.
stagesThe shader stages, the descriptor sets are bound to.