Skip to content

LiteFX::Rendering::Backends::DirectX12Device::buildRayTracingPipeline

Returns a builder for a RayTracingPipeline.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, nodiscard, dllexport]] virtual DirectX12RayTracingPipelineBuilder buildRayTracingPipeline(
    String const& name,
    ShaderRecordCollection&& shaderRecords) const override;

Description

This method is only supported if the GraphicsDeviceFeatures::RayTracing feature is enabled.

Return Value

An instance of a builder that is used to create a new ray-tracing pipeline.

Note

The return value should not be discarded.

Parameters

NameDescription
nameThe name of the ray-tracing pipeline.
shaderRecordsThe shader record collection that is used to build the shader binding table for the pipeline.