D3D11X_MSAA_SAMPLE_POSITIONS Structure

Contains sample positions for each pixel in a quad.

Syntax

typedef struct D3D11X_MSAA_SAMPLE_POSITIONS {
    INT8 SampleLocs00[16][2];
    INT8 SampleLocs10[16][2];
    INT8 SampleLocs01[16][2];
    INT8 SampleLocs11[16][2];
} D3D11X_MSAA_SAMPLE_POSITIONS;  

Members

SampleLocs00
Sample positions for the top left pixel in the quad. Sample positions are stored as one byte per component, X then Y.

SampleLocs10
Sample positions for the top right pixel in the quad. There are up to 16 possible sample positions per pixel.

SampleLocs01
Sample positions for the bottom left pixel in the quad. Sample positions can be set differently for each pixel in a 2x2 quad.

SampleLocs11
Sample positions for the bottom right pixel in the quad.

Remarks

This structure is used by ID3D11DeviceContextX::RSGetMSAASettingsForQuality and ID3D11DeviceContextX::RSSetSamplePositions.

This structure contains sample positions for each pixel in a quad. Each position is given by two signed integers in the range of [-8..7], specifying X and Y coordinates of a sample on a 1/16 subpixel grid.

Requirements

Header: Declared in d3d11_x.h.