This indicates the maximum feature level from the provided list which is supported by the device. If none of the provided levels are supported, then this API fails with D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES.
HRESULT GetMaximumSupportedFeatureLevel( [in] const D3D_FEATURE_LEVEL *featureLevels, UINT32 featureLevelsCount, [out] D3D_FEATURE_LEVEL *maximumSupportedFeatureLevel );
- featureLevels [in]
Type: const D3D_FEATURE_LEVEL*
The feature levels provided by the application.
The count of feature levels provided by the application
- maximumSupportedFeatureLevel [out]
The maximum feature level from the featureLevels list which is supported by the D2D device.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
|S_OK||No error occurred.|
|E_OUTOFMEMORY||Direct2D could not allocate sufficient memory to complete the call.|
|E_INVALIDARG||An invalid parameter was passed to the returning function.|
|D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES||None of the provided levels are supported.|
Minimum supported client
|Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]|
Minimum supported server
|Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]|