DXGK_FEATURE_INTERFACE structure (dispmprt.h)

The DXGK_FEATURE_INTERFACE structure contains the port driver's interface that can be used to query it for its enabled features and their support.

Syntax

typedef struct _DXGK_FEATURE_INTERFACE {
  USHORT                       Size;
  USHORT                       Version;
  PVOID                        Context;
  PINTERFACE_REFERENCE         InterfaceReference;
  PINTERFACE_DEREFERENCE       InterfaceDereference;
  DXGKCB_ISFEATUREENABLED2     IsFeatureEnabled;
  DXGKCB_QUERYFEATUREINTERFACE QueryFeatureInterface;
} DXGK_FEATURE_INTERFACE, *PDXGK_FEATURE_INTERFACE;

Members

Size

Size of this structure, in bytes.

Version

The version number of the feature interface. Version number constants are defined in Dispmprt.h (for example, DXGK_FEATURE_INTERFACE_VERSION_1).

Context

Pointer to a private context block.

InterfaceReference

Pointer to the port driver's interface reference function.

InterfaceDereference

Pointer to the port driver's interface dereference function.

IsFeatureEnabled

The port driver's DXGKCB_ISFEATUREENABLED2 function. KMD can call this function to query whether the system has enabled a feature.

QueryFeatureInterface

The port driver's DXGKCB_QUERYFEATUREINTERFACE function. KMD can call this function to query the OS for a feature's interface.

Remarks

To get this interface, KMD calls Dxgkrnl's DxgkCbQueryServices callback with ServiceType set to DxgkServicesFeature. KMD can call DxgkCbQueryServices once it obtains the callback's pointer from a call to its DxgkDdiStartDevice.

For more information, see Querying WDDM feature support and enablement.

Requirements

Requirement Value
Minimum supported client Windows 11, version 24H2 (WDDM 3.2)
Header dispmprt.h

See also

DXGK_SERVICES

DXGKCB_ISFEATUREENABLED2

DXGKCB_QUERYFEATUREINTERFACE

DxgkCbQueryServices

DxgkDdiStartDevice