Syntax
Parameters
shadingRateImageType: ID3D12Resource * An optional pointer to an ID3D12Resource representing a screen-space shading-rate image. If NULL, the effect is the same as having a shading-rate image where all values are a shading rate of 1x1. This texture must have the D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE state applied. The tile-size of the shading-rate image can be determined via D3D12_FEATURE_DATA_D3D12_OPTIONS6. The size of the shading-rate image should therefore be
Return value
Type: void None.Remarks
For the screen-space shading-rate image to take affect, ID3D12GraphicsCommandList5::RSSetShadingRate must have been called to set the combiners for shading. Else, with the default combiners (both D3D12_SHADING_RATE_COMBINER_PASSTHROUGH), the screen-space shading-rate image is ignored in determining shading granularity. The second combiner passed to [ID3D12GraphicsCommandList5::RSSetShadingRate] is the one which applies to the shading-rate image, which occurs after the global shading rate and the per-primitive shading rate have been combined. The algorithm for final shading-rate is determined byApplyCombiner is
Requirements
Header: d3d12_xs.hLibrary: d3d12_xs.lib
Supported Platforms: XBOX Series consoles
