LiteFX::Rendering::Backends::DirectX12RayTracingPipeline::DirectX12RayTracingPipeline¶
Initializes a new DirectX 12 ray-tracing pipeline.
Synopses¶
Declared in <litefx/backends/dx12.hpp>
Copy constructor
DirectX12RayTracingPipeline(DirectX12RayTracingPipeline const& other) = delete;
Move constructor
[[dllimport, dllexport]] DirectX12RayTracingPipeline(DirectX12RayTracingPipeline&& other) noexcept;
Initializes a new DirectX 12 ray-tracing pipeline.
[[dllimport, dllexport]] explicit DirectX12RayTracingPipeline(
DirectX12Device const& device,
SharedPtr<DirectX12PipelineLayout> const& layout,
SharedPtr<DirectX12ShaderProgram> const& shaderProgram,
ShaderRecordCollection&& shaderRecords,
UInt32 maxRecursionDepth = 10,
UInt32 maxPayloadSize = 0,
UInt32 maxAttributeSize = 32,
String const& name = "");
Parameters¶
| Name | Description |
|---|---|
| device | The parent device. |
| layout | The layout of the pipeline. |
| shaderProgram | The shader program used by this pipeline. |
| shaderRecords | The shader record collection that is used to build the shader binding table for the pipeline. |
| maxRecursionDepth | The maximum number of ray bounces. |
| maxPayloadSize | The maximum size for ray payloads in the pipeline. |
| maxAttributeSize | The maximum size for ray attributes in the pipeline. |
| name | The optional debug name of the ray-tracing pipeline. |