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.

HRESULTDescription
S_OKNo error occurred.
E_OUTOFMEMORYDirect2D could not allocate sufficient memory to complete the call.
E_INVALIDARGAn invalid parameter was passed to the returning function.
D2DERR_INSUFFICIENT_DEVICE_CAPABILITIESNone 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]

Header

D2D1EffectAuthor.h

Library

D2D1.lib

See also

ID2D1EffectContext

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.