// dispmprt.h
typedef struct _DXGKDDI_FEATURE_INTERFACE {
USHORT Size;
USHORT Version;
PVOID Context;
PINTERFACE_REFERENCE InterfaceReference;
PINTERFACE_DEREFERENCE InterfaceDereference;
PDXGKDDI_QUERYFEATURESUPPORT QueryFeatureSupport;
PDXGKDDI_QUERYFEATUREINTERFACE QueryFeatureInterface;
} DXGKDDI_FEATURE_INTERFACE, *PDXGKDDI_FEATURE_INTERFACE;
View the official Windows Driver Kit DDI referenceNo description available.
The DXGKDDI_FEATURE_INTERFACE structure contains the display kernel-mode miniport driver's (KMD's) interface that the port driver can call to query for KMD's feature support.
SizeThe size, in bytes, of this structure.
VersionThe version number of this interface. Version number constants are defined in Dispmprt.h (for example, DXGK_FEATURE_INTERFACE_VERSION_1).
ContextA pointer to a private context block.
InterfaceReferencePointer to a KMD-implemented interface reference function.
InterfaceDereferencePointer to a KMD-implemented interface dereference function.
QueryFeatureSupportPointer to a KMD-implemented DxgkDdiQueryFeatureSupport function to query feature support.
QueryFeatureInterfacePointer to a KMD-implemented DxgkDdiQueryFeatureInterface function to query KMD's interfaces for a feature. The OS only calls these interfaces for enabled features, and always requests the interface for a version of the feature that the driver supports.
If the driver implements the DXGKDDI_FEATURE_INTERFACE, it no longer needs to call DxgkCbQueryFeatureSupport to enable a feature in the port driver ahead of time. It can instead query feature support on demand using its DXGKDDI_FEATURE_INTERFACE interface.
For more information, see Querying WDDM feature support and enablement.