> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_RAYTRACING_PIPELINE_CONFIG1 (XBOX Series consoles)

> A state subobject that represents a raytracing pipeline configuration, with flags.

A state subobject that represents a raytracing pipeline configuration, with flags.

**D3D12\_RAYTRACING\_PIPELINE\_CONFIG1** requires Tier 1.1 raytracing support (see [D3D12\_RAYTRACING\_TIER](/reference/graphics/d3d12/enums/d3d12_raytracing_tier_public)).

## Syntax

```cpp theme={null}
typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG1
{
    UINT MaxTraceRecursionDepth;
    D3D12_RAYTRACING_PIPELINE_FLAGS Flags;
} D3D12_RAYTRACING_PIPELINE_CONFIG1
```

### 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.

*Flags*\
Type: D3D12\_RAYTRACING\_PIPELINE\_FLAGS

Configuration flags for the raytracing pipeline.

## 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](/reference/graphics/d3d12/structs/d3d12_raytracing_shader_config_public), which *does* benefit from duplication per collection.

## Requirements

**Header:** d3d12\_xs.h\
**Library:** d3d12\_xs.lib\
**Supported Platforms**: XBOX Series consoles

## See Also


## Related topics

- [D3D12_RAYTRACING_PIPELINE_CONFIG (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_raytracing_pipeline_config_public.md)
- [D3D12_RAYTRACING_PIPELINE_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_raytracing_pipeline_flags_public.md)
- [D3D12_RAYTRACING_SHADER_CONFIG (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_raytracing_shader_config_public.md)
- [D3D12_RAYTRACING_AABB (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_raytracing_aabb_public.md)
- [D3D12_RAYTRACING_GEOMETRY_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_flags_public.md)
