ID3D11Device::CheckFeatureSupport Method

Gets information about the features that are supported by the current graphics driver.

Syntax

public:
HRESULT CheckFeatureSupport(
         D3D11_FEATURE Feature,
         void *pFeatureSupportData,
         UINT FeatureSupportDataSize
)  

Parameters

Feature
Type: D3D11_FEATURE 

A member of the D3D11_FEATURE enumerated type that describes which feature to query for support.

pFeatureSupportData
Type: void *

[out]

Upon completion of the method, the passed structure is filled with data that describes the feature support.

FeatureSupportDataSize
Type: UINT 

The size of the structure passed to the pFeatureSupportData parameter.

Return value

Type: HRESULT 

Returns S_OK if successful; otherwise, returns E_INVALIDARG if an unsupported data type is passed to the pFeatureSupportData parameter or a size mismatch is detected for the FeatureSupportDataSize parameter.

Remarks

To query for multi-threading support, pass the D3D11_FEATURE_THREADING value to the Feature parameter, pass the D3D11_FEATURE_DATA_THREADING structure to the pFeatureSupportData parameter, and pass the size of the D3D11_FEATURE_DATA_THREADING structure to the FeatureSupportDataSize parameter.

Calling CheckFeatureSupport with Feature set to D3D11_FEATURE_FORMAT_SUPPORT causes the method to return the same information that would be returned by ID3D11Device::CheckFormatSupport.

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