Skip to main content
Sets the base shading rate, and combiners, for variable-rate shading (VRS). For more info, see Variable-rate shading (VRS).

Syntax

Parameters

baseShadingRate
Type: D3D12_SHADING_RATE
A constant from the D3D12_SHADING_RATE enumeration describing the base shading rate to set. combiners
Type: const D3D12_SHADING_RATE_COMBINER *
An optional pointer to a constant array of D3D12_SHADING_RATE_COMBINER containing the shading rate combiners to set. The count of D3D12_SHADING_RATE_COMBINER elements in the array must be equal to the constant D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT, which is equal to 2. Because per-primitive and screen-space image-based VRS isn’t supported on Tier1 Variable-rate shading (VRS), for these values to be meaningful, the adapter requires Tier2 VRS support. See D3D12_FEATURE_DATA_D3D12_OPTIONS6 and D3D12_VARIABLE_SHADING_RATE_TIER. A NULL pointer is equivalent to the default shading combiners, which are both D3D12_SHADING_RATE_COMBINER_PASSTHROUGH. The algorithm for final shading-rate is determined by the following.
where ApplyCombiner is

Return value

Type: void None.

Remarks

Requirements

Header: d3d12_xs.h
Library: d3d12_xs.lib
Supported Platforms: XBOX Series consoles

See Also

Variable-rate shading (VRS)
Last modified on August 20, 2026