ID2D1EffectContext::GetMaximumSupportedFeatureLevel method
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.
Syntax
HRESULT GetMaximumSupportedFeatureLevel( [in] const D3D_FEATURE_LEVEL *featureLevels, UINT32 featureLevelsCount, [out] D3D_FEATURE_LEVEL *maximumSupportedFeatureLevel );
Parameters
- featureLevels [in]
-
Type: const D3D_FEATURE_LEVEL*
The feature levels provided by the application.
- featureLevelsCount
-
Type: UINT32
The count of feature levels provided by the application
- maximumSupportedFeatureLevel [out]
-
Type: D3D_FEATURE_LEVEL*
The maximum feature level from the featureLevels list which is supported by the D2D device.
Return value
Type: HRESULT
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| HRESULT | Description |
|---|---|
| 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. |
Requirements
|
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] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
See also