Skip to content

LiteFX::Rendering::Backends::DirectX12PipelineLayout::create

Creates a new DirectX 12 render pipeline layout.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] static auto create(
    DirectX12Device const& device,
    Enumerable<SharedPtr<DirectX12DescriptorSetLayout>> const& descriptorSetLayouts,
    UniquePtr<DirectX12PushConstantsLayout>&& pushConstantsLayout,
    bool directResourceHeapAccess = false,
    bool directSamplerHeapAccess = false);

Return Value

A shared pointer to the newly created pipeline layout instance.

Parameters

NameDescription
deviceThe parent device, the layout is created from.
descriptorSetLayoutsThe descriptor set layouts used by the pipeline.
pushConstantsLayoutThe push constants layout used by the pipeline.
directResourceHeapAccessIndicates if the pipeline uses direct access to the global resource descriptor heap (ResourceDescriptorHeap).
directSamplerHeapAccessIndicates if the pipeline uses direct access to the global sampler descriptor heap (SamplerDescriptorHeap).