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¶
| Name | Description |
|---|---|
| device | The parent device, the layout is created from. |
| descriptorSetLayouts | The descriptor set layouts used by the pipeline. |
| pushConstantsLayout | The push constants layout used by the pipeline. |
| directResourceHeapAccess | Indicates if the pipeline uses direct access to the global resource descriptor heap (ResourceDescriptorHeap). |
| directSamplerHeapAccess | Indicates if the pipeline uses direct access to the global sampler descriptor heap (SamplerDescriptorHeap). |