Skip to content

LiteFX::Rendering::Backends::DirectX12PipelineLayout::rootParameterIndex

Returns the root parameter index for a push constants range

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] Optional<UInt32> rootParameterIndex(DirectX12PushConstantsRange const& range) const noexcept;

Description

Note that root parameter mapping is done by matching the range space and register. The restrictions and implications are similar to what's described for <see cref="rootParameterIndex(const DirectX12DescriptorSetLayout&) />. Compatibility must be ensured by the application.

Return Value

The root parameter index for the push constants range, or std::nullopt, if the push constants range is not part of the pipeline layout.

Parameters

NameDescription
rangeThe push constants range.