ID2D1DeviceContext::IsDxgiFormatSupported method

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

Syntax


BOOL IsDxgiFormatSupported(
  format DXGI_FORMAT
);

Parameters

DXGI_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

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1_1.h

DLL

D2d1.dll

See also

ID2D1DeviceContext

 

 

Community Additions

ADD
Show:
© 2014 Microsoft