Skip to main content
A state subobject that represents a shader configuration.

Syntax

Members

MaxPayloadSizeInBytes
Type: UINT
The maximum storage for scalars (counted as 4 bytes each) in ray payloads in raytracing pipelines that contain this program. MaxAttributeSizeInBytes
Type: UINT
The maximum number of scalars (counted as 4 bytes each) that can be used for attributes in pipelines that contain this shader. The value cannot exceed D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES.

Remarks

A raytracing pipeline needs one raytracing shader configuration. If multiple shader configurations are present, such as one in each collection to enable independent driver compilation for each one, they must all match when combined into a raytracing pipeline.

Requirements

Header: d3d12_xs.h
Library: d3d12_xs.lib
Supported Platforms: XBOX Series consoles
Last modified on August 20, 2026