Skip to content

LiteFX::Rendering::Backends::DirectX12DescriptorLayout::DirectX12DescriptorLayout

Initializes a new DirectX 12 descriptor layout.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] DirectX12DescriptorLayout(
    DescriptorType type,
    UInt32 binding,
    size_t elementSize,
    UInt32 descriptors = 1,
    bool unbounded = false,
    bool local = false);

Parameters

NameDescription
typeThe type of the descriptor.
bindingThe binding point for the descriptor.
elementSizeThe size of the descriptor.
descriptorsThe number of descriptors in the descriptor array. If unbounded is set, this value sets the upper limit for the array size.
unboundedIf set to true, the descriptor will be defined as a runtime-allocated, unbounded array.
localDetermines if the descriptor is part of the local or global root signature for ray-tracing shaders.