ID2D1DeviceContext::IsDxgiFormatSupported method (d2d1_1.h)

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

Syntax

BOOL IsDxgiFormatSupported(
  DXGI_FORMAT format
);

Parameters

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.

Remarks

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.

Requirements

Requirement Value
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

ID2D1DeviceContext