ID3D11Device::CheckFormatSupport method

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

Syntax

HRESULT CheckFormatSupport(
  DXGI_FORMAT Format,
  UINT        *pFormatSupport
);

Parameters

Format

Type: DXGI_FORMAT

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

pFormatSupport

Type: UINT*

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

   
Target Platform Windows
Header d3d11.h
Library D3D11.lib

See Also

ID3D11Device