ID3D10Device::CheckFormatSupport method (d3d10.h)

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

Syntax

HRESULT CheckFormatSupport(
  [in]  DXGI_FORMAT Format,
  [out] UINT        *pFormatSupport
);

Parameters

[in] Format

Type: DXGI_FORMAT

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

[out] pFormatSupport

Type: UINT*

A bitfield of D3D10_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.

Remarks

Most format support is based on the Direct3D feature level. Only a few specific use cases require checking for support. See Hardware Support for Direct3D 10 Formats and Hardware Support for Direct3D 10.1 Formats for additional information.

Requirements

Requirement Value
Target Platform Windows
Header d3d10.h
Library D3D10.lib

See also

ID3D10Device Interface