Contains the Sample Converter settings for multisample antialiasing (MSAA).
typedef struct D3D11X_MSAA_SCAN_CONVERTER_SETTINGS {
UINT NumSamplesMsaaLog2 : 3;
UINT MaxSampleDistanceInSubpixels : 4;
UINT NumSamplesMsaaExposedToPSLog2 : 3;
UINT DetailToExposedMode : 2;
UINT ApplyMaskAfterCentroid : 1;
} D3D11X_MSAA_SCAN_CONVERTER_SETTINGS;
NumSamplesMsaaLog2
Specifies the number of samples to use for MSAA sampling.
MaxSampleDistanceInSubpixels
Specifies the maximum distance in 1/16 subpixels between the pixel centre and the outermost subpixel sample. Should be set to 0 when not anti-aliasing.
NumSamplesMsaaExposedToPSLog2
Specifies the number of sample the pixel shader can see from the primitive’s coverage in the pixel.
DetailToExposedMode
Specifies the mode to use when converting from a higher NumSamplesMsaaLog2 to NumSamplesMsaaExposedToPSLog2:
| Value | Description |
|---|---|
| 0 | Mask-off higher samples. If the result is empty, OR the upper bits down into lower samples. |
| 1 | Mask-off higher samples. |
| 2 | OR the higher samples down into lower samples. |
| 3 | Reserved; do not use. |
ApplyMaskAfterCentroid
Specifies whether to apply the MSAA mask before or after the centroid determination.
This structure is used by ID3D11DeviceContextX::RSGetMSAASettingsForQuality and ID3D11DeviceContextX::RSSetScanConverterMSAASettings.
Header: Declared in d3d11_x.h.