D3DDDI_ADAPTERFUNCS structure (d3dumddi.h)

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

Syntax

typedef struct _D3DDDI_ADAPTERFUNCS {
  PFND3DDDI_GETCAPS      pfnGetCaps;
  PFND3DDDI_CREATEDEVICE pfnCreateDevice;
  PFND3DDDI_CLOSEADAPTER pfnCloseAdapter;
} D3DDDI_ADAPTERFUNCS;

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);

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3dumddi.h (include D3dumddi.h)

See also

CloseAdapter

CreateDevice

D3DDDIARG_OPENADAPTER

GetCaps

OpenAdapter