D3D12_SHADING_RATE enumeration (d3d12.h)

Defines constants that specify the shading rate (for variable-rate shading, or VRS). For more info, see Variable-rate shading (VRS).

Syntax

typedef enum D3D12_SHADING_RATE {
  D3D12_SHADING_RATE_1X1 = 0,
  D3D12_SHADING_RATE_1X2 = 0x1,
  D3D12_SHADING_RATE_2X1 = 0x4,
  D3D12_SHADING_RATE_2X2 = 0x5,
  D3D12_SHADING_RATE_2X4 = 0x6,
  D3D12_SHADING_RATE_4X2 = 0x9,
  D3D12_SHADING_RATE_4X4 = 0xa
} ;

Constants

 
D3D12_SHADING_RATE_1X1
Value: 0
Specifies no change to the shading rate.
D3D12_SHADING_RATE_1X2
Value: 0x1
Specifies that the shading rate should reduce vertical resolution 2x.
D3D12_SHADING_RATE_2X1
Value: 0x4
Specifies that the shading rate should reduce horizontal resolution 2x.
D3D12_SHADING_RATE_2X2
Value: 0x5
Specifies that the shading rate should reduce the resolution of both axes 2x.
D3D12_SHADING_RATE_2X4
Value: 0x6
Specifies that the shading rate should reduce horizontal resolution 2x, and reduce vertical resolution 4x.
D3D12_SHADING_RATE_4X2
Value: 0x9
Specifies that the shading rate should reduce horizontal resolution 4x, and reduce vertical resolution 2x.
D3D12_SHADING_RATE_4X4
Value: 0xa
Specifies that the shading rate should reduce the resolution of both axes 4x.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header d3d12.h

See also

Variable-rate shading (VRS)