Freigeben über


IAppxManifestQualifiedResource::GetDXFeatureLevel method

Retrieves the DirectX feature level of the resource from the manifest's Resources\Resource field.

Syntax

HRESULT GetDXFeatureLevel(
  [out, retval] DX_FEATURE_LEVEL *dxFeatureLevel
);

Parameters

  • dxFeatureLevel [out, retval]
    Type: DX_FEATURE_LEVEL*

    A pointer to a variable that receives the DX_FEATURE_LEVEL-typed value that specifies the DirectX feature level of the resource. Here are possible values:

    Value Meaning
    DX_FEATURE_LEVEL_UNSPECIFIED 0

    The DirectX feature level isn't defined.

    DX_FEATURE_LEVEL_9 1

    Specifies a resource for graphics hardware that targets features supported by feature level 9, which includes shader model 2.

    DX_FEATURE_LEVEL_10 2

    Specifies a resource for graphics hardware that targets features supported by Direct3D 10, which includes shader model 4.

    DX_FEATURE_LEVEL_11 3

    Specifies a resource for graphics hardware that targets features supported by Direct3D 11, which includes shader model 5.

     

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

DirectX feature levels indicate well-defined sets of graphics processing unit (GPU) functionality that roughly correspond to different generations of graphics hardware.

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

AppxPackaging.h

IDL

AppxPackaging.idl

IID

IID_IAppxManifestQualifiedResource is defined as a803f724-f6d3-4451-9a56-e57707e5def0

See also

IAppxManifestQualifiedResource