Espandi Riduci a icona

OpenAdapter10_2 routine

The OpenAdapter10_2 function creates a graphics adapter object that is referenced in subsequent calls.

Syntax


PFND3D10DDI_OPENADAPTER OpenAdapter10_2;

HRESULT APIENTRY OpenAdapter10_2(
  _Inout_  D3D10DDIARG_OPENADAPTER *pOpenData
)
{ ... }

Parameters

pOpenData [in, out]

A pointer to a D3D10DDIARG_OPENADAPTER structure. On input, this structure contains information that the driver can use. On output, the driver specifies information that the Microsoft Direct3D runtime can use.

Return value

OpenAdapter10_2 returns one of the following values:

Return codeDescription
S_OK

The graphics adapter object is successfully created.

E_OUTOFMEMORY

OpenAdapter10_2 could not allocate memory that is required for it to complete.

 

Remarks

The graphics adapter object that is created by the OpenAdapter10_2 function represents the underlying graphics hardware. Before the Direct3D runtime can create a display device by calling CreateDevice(D3D10), the user-mode display driver should call the pfnQueryAdapterInfoCb function to query for the graphics hardware capabilities from the display miniport driver.

For information about how OpenAdapter10_2 handles the exchange of versioning and other information between the runtime and the driver, see Initializing Communication with the Direct3D Version 11 DDI.

The Direct3D runtime can open multiple graphics adapter objects from a single graphics adapter.

Requirements

Version

OpenAdapter10_2 is supported beginning with the Windows 7 operating system.

Header

D3d10umddi.h (include D3d10umddi.h)

See also

D3D10DDIARG_OPENADAPTER
CreateDevice(D3D10)
pfnQueryAdapterInfoCb

 

 

Send comments about this topic to Microsoft

Mostra:
© 2014 Microsoft