IDMLDevice::CheckFeatureSupport method (directml.h)
Gets information about the optional features and capabilities that are supported by the DirectML device.
Syntax
HRESULT CheckFeatureSupport(
DML_FEATURE feature,
UINT featureQueryDataSize,
[in, optional] const void *featureQueryData,
UINT featureSupportDataSize,
[out] void *featureSupportData
);
Parameters
feature
Type: DML_FEATURE
A constant from the DML_FEATURE enumeration describing the feature(s) that you want to query for support.
featureQueryDataSize
Type: UINT
The size of the structure pointed to by the featureQueryData parameter, if provided, otherwise 0.
[in, optional] featureQueryData
Type: const void*
An optional pointer to a query structure that corresponds to the value of the feature parameter. To determine the corresponding query type for each constant, see DML_FEATURE.
featureSupportDataSize
Type: UINT
The size of the structure pointed to by the featureSupportData parameter.
[out] featureSupportData
Type: void*
A pointer to a support data structure that corresponds to the value of the feature parameter. To determine the corresponding support data type for each constant, see DML_FEATURE.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns DXGI_ERROR_UNSUPPORTED if the DML_FEATURE is unrecognized or unsupported, and E_INVALIDARG if the parameters are incorrect.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | directml.h |
Library | DirectML.lib |
DLL | DirectML.dll |