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,
  D3D12_SHADING_RATE_1X2,
  D3D12_SHADING_RATE_2X1,
  D3D12_SHADING_RATE_2X2,
  D3D12_SHADING_RATE_2X4,
  D3D12_SHADING_RATE_4X2,
  D3D12_SHADING_RATE_4X4
} ;

Constants

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

Requirements

   
Header d3d12.h

See also

Variable-rate shading (VRS)