D3DDDI_ADAPTERFUNCS - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dumddi.h

typedef struct _D3DDDI_ADAPTERFUNCS {
  PFND3DDDI_GETCAPS      pfnGetCaps;
  PFND3DDDI_CREATEDEVICE pfnCreateDevice;
  PFND3DDDI_CLOSEADAPTER pfnCloseAdapter;
} D3DDDI_ADAPTERFUNCS;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3dumddi-_d3dddi_adapterfuncs)

_D3DDDI_ADAPTERFUNCS structure

Description

The D3DDDI_ADAPTERFUNCS structure contains functions that the user-mode display driver can implement to communicate with a graphics adapter object.

Members

pfnGetCaps

A pointer to the driver's GetCaps function that queries for capabilities of the graphics hardware.

pfnCreateDevice

A pointer to the driver's CreateDevice function that creates a representation of a display device that handles a collection of rendering state.

pfnCloseAdapter

A pointer to the driver's CloseAdapter function that releases resources for a graphics adapter object.

Remarks

Multiple graphics adapter objects can be created for a single physical graphics adapter.

The following code example demonstrates the function declarations for the functions that the members of D3DDDI_ADAPTERFUNCS point to.

typedef HRESULT (APIENTRY *PFND3DDDI_GETCAPS)(HANDLE hAdapter, CONST D3DDDIARG_GETCAPS*);
typedef HRESULT (APIENTRY *PFND3DDDI_CREATEDEVICE)(IN HANDLE hAdapter, IN D3DDDIARG_CREATEDEVICE*);
typedef HRESULT (APIENTRY *PFND3DDDI_CLOSEADAPTER)(IN HANDLE hAdapter);

See also

CloseAdapter

CreateDevice

D3DDDIARG_OPENADAPTER

GetCaps

OpenAdapter