ID2D1DeviceContext::IsDxgiFormatSupported method

Indicates whether the format is supported by the device context. The formats supported are usually determined by the underlying hardware.


BOOL IsDxgiFormatSupported(
  DXGI_FORMAT format



Type: format

The DXGI format to check.

Return Value

Type: BOOL

Returns TRUE if the format is supported. Returns FALSE if the format is not supported.


You can use supported formats in the D2D1_PIXEL_FORMAT structure to create bitmaps and render targets.

Direct2D doesn't support all DXGI formats, even though they may have some level of Direct3D support by the hardware.


Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_1.h
DLL D2d1.dll

See Also