D3D12_RAYTRACING_PIPELINE_CONFIG structure (d3d12.h)

A state subobject that represents a raytracing pipeline configuration.

Syntax

typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG {
  UINT MaxTraceRecursionDepth;
} D3D12_RAYTRACING_PIPELINE_CONFIG;

Members

MaxTraceRecursionDepth

Type: UINT

Limit on ray recursion for the raytracing pipeline. It must be in the range of 0 to 31. Below the maximum recursion depth, shader invocations such as closest hit or miss shaders can call TraceRay any number of times. At the maximum recursion depth, TraceRay calls result in the device going into removed state.

Remarks

A raytracing pipeline needs one raytracing pipeline configuration. If multiple pipeline configurations are present, then they must all match in content. But there's no benefit to such duplication. For example, defining it once per collection doesn't help drivers do early shader compilation before a raytracing pipeline is created. This is unlike D3D12_RAYTRACING_SHADER_CONFIG, which does benefit from duplication per collection.

Requirements

Requirement Value
Header d3d12.h