DXGI_MODE_DESC Structure
The DXGI_MODE_DESC structure describes a display mode.
Syntax
typedef struct DXGI_MODE_DESC {
UINT Width;
UINT Height;
DXGI_RATIONAL RefreshRate;
DXGI_FORMAT Format;
DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
DXGI_MODE_SCALING Scaling;
} DXGI_MODE_DESC;
Members
- Width
-
The width of the display mode, in pixels.
- Height
-
The height of the display mode, in pixels.
- RefreshRate
-
A
DXGI_RATIONALstructure that describes the refresh rate of the display mode, in Hz. - Format
-
A
DXGI_FORMAT-typed value that specifies the pixel format. - ScanlineOrdering
-
A
DXGI_MODE_SCANLINE_ORDER-typed value that specifies the scanline rendering order.Possible values include:
DXGI_MODE_SCANLINE_ORDER_UNSPECIFIEDDXGI_MODE_SCANLINE_ORDER_PROGRESSIVEDXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRSTDXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST
- Scaling
-
A
DXGI_MODE_SCALING-typed value that specifies how the content is scaled to fit the display.Possible values include:
DXGI_MODE_SCALING_UNSPECIFIEDDXGI_MODE_SCALING_CENTEREDDXGI_MODE_SCALING_STRETCHED
Remarks
The DXGI_MODE_DESC structure is used by the following methods:
IDXGIFactory::EnumAdaptersIDXGIAdapter::EnumOutputsIDXGIOutput::GetDescIDXGIOutput::GetDisplayModeListIDXGISwapChain::GetDescIDXGISwapChain::GetFullscreenStateIDXGISwapChain::Present
Note: When specifying a display mode, ensure that the requested width, height, and refresh rate are supported by the display adapter and monitor. The
GetDisplayModeList method can be used to retrieve a list of supported modes.