Get the support of a given format on the installed video device.
public:
HRESULT CheckFormatSupport(
DXGI_FORMAT Format,
UINT *pFormatSupport
)
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.
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.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).