// d3dumddi.h
typedef struct _D3DDDI_ADAPTERFUNCS {
PFND3DDDI_GETCAPS pfnGetCaps;
PFND3DDDI_CREATEDEVICE pfnCreateDevice;
PFND3DDDI_CLOSEADAPTER pfnCloseAdapter;
} D3DDDI_ADAPTERFUNCS;
View the official Windows Driver Kit DDI referenceNo description available.
The D3DDDI_ADAPTERFUNCS structure contains functions that the user-mode display driver can implement to communicate with a graphics adapter object.
pfnGetCapsA pointer to the driver's GetCaps function that queries for capabilities of the graphics hardware.
pfnCreateDeviceA pointer to the driver's CreateDevice function that creates a representation of a display device that handles a collection of rendering state.
pfnCloseAdapterA pointer to the driver's CloseAdapter function that releases resources for a graphics adapter object.
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);