ID2D1EffectContext::GetMaximumSupportedFeatureLevel method (d2d1effectauthor.h)
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
[in] featureLevels
Type: const D3D_FEATURE_LEVEL*
The feature levels provided by the application.
featureLevelsCount
Type: UINT32
The count of feature levels provided by the application
[out] maximumSupportedFeatureLevel
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
Requirement | Value |
---|---|
Minimum supported client | Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | d2d1effectauthor.h |
Library | D2D1.lib |