ID3D11Device::CheckFormatSupport Method

Get the support of a given format on the installed video device.

Syntax

public:
HRESULT CheckFormatSupport(
         DXGI_FORMAT Format,
         UINT *pFormatSupport
)  

Parameters

Format
Type: DXGI_FORMAT 

[in] A DXGI_FORMAT enumeration that describes a format for which to check for support.

pFormatSupport
Type: UINT *

[out] A bitfield of D3D11_FORMAT_SUPPORT enumeration values describing how the specified format is supported on the installed device. The values are ORed together.

Return value

Type: HRESULT 

Returns S_OK if successful; otherwise, returns E_INVALIDARG if the Format parameter is NULL, or returns E_FAIL if the described format does not exist.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11Device

ID3D11Device Members