> ## 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_SHADING_RATE (XBOX Series consoles)

> Defines constants that specify the shading rate (for variable-rate shading, or VRS).

Defines constants that specify the shading rate (for variable-rate shading, or VRS). For more info, see [Variable-rate shading (VRS)](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/vrs).

## Syntax

```cpp theme={null}
typedef enum D3D12_SHADING_RATE
{
    D3D12_SHADING_RATE_1X1 = 0,
    D3D12_SHADING_RATE_1X2 = 1,
    D3D12_SHADING_RATE_2X1 = 4,
    D3D12_SHADING_RATE_2X2 = 5,
    D3D12_SHADING_RATE_2X4 = 6,
    D3D12_SHADING_RATE_4X2 = 9,
    D3D12_SHADING_RATE_4X4 = 10
} D3D12_SHADING_RATE
```

## Constants

| Constant                  | Description                                                                                                |
| ------------------------- | ---------------------------------------------------------------------------------------------------------- |
| D3D12\_SHADING\_RATE\_1X1 | Specifies no change to the shading rate.                                                                   |
| D3D12\_SHADING\_RATE\_1X2 | Specifies that the shading rate should reduce vertical resolution 2x.                                      |
| D3D12\_SHADING\_RATE\_2X1 | Specifies that the shading rate should reduce horizontal resolution 2x.                                    |
| D3D12\_SHADING\_RATE\_2X2 | Specifies that the shading rate should reduce the resolution of both axes 2x.                              |
| D3D12\_SHADING\_RATE\_2X4 | Specifies that the shading rate should reduce horizontal resolution 2x, and reduce vertical resolution 4x. |
| D3D12\_SHADING\_RATE\_4X2 | Specifies that the shading rate should reduce horizontal resolution 4x, and reduce vertical resolution 2x. |
| D3D12\_SHADING\_RATE\_4X4 | Specifies that the shading rate should reduce the resolution of both axes 4x.                              |

## Remarks

## Requirements

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

## See Also

[Variable-rate shading (VRS)](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/vrs)


## Related topics

- [RSSetShadingRate (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist5/methods/id3d12graphicscommandlist5_rssetshadingrate_public.md)
- [D3D12_SHADING_RATE_COMBINER](/reference/graphics/d3d12/enums/d3d12_shading_rate_combiner_public.md)
- [RSSetShadingRateImage (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist5/methods/id3d12graphicscommandlist5_rssetshadingrateimage_public.md)
- [D3D12_AXIS_SHADING_RATE (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_axis_shading_rate_public.md)
- [D3D12_VARIABLE_SHADING_RATE_TIER](/reference/graphics/d3d12/enums/d3d12_variable_shading_rate_tier_public.md)
