PFND3D10_2DDI_GETSUPPORTEDVERSIONS callback function

The GetSupportedVersions function queries for the Direct3D interface versions that the driver supports.

Syntax


PFND3D10_2DDI_GETSUPPORTEDVERSIONS GetSupportedVersions;

HRESULT APIENTRY GetSupportedVersions(
  _In_      D3D10DDI_HADAPTER hAdapter,
  _Inout_   UINT32            *puEntries,
  _Out_opt_ UINT64            *pSupportedDDIInterfaceVersions
)
{ ... }

Parameters

hAdapter [in]

A handle that identifies the graphics adapter.

puEntries [in, out]

A pointer to a variable that, on input, contains the number of entries that the pSupportedDDIInterfaceVersions array should return and, on output, the number of entries that the pSupportedDDIInterfaceVersions array actually returns.

pSupportedDDIInterfaceVersions [out, optional]

A pointer to a block of memory that receives the array of Direct3D interface versions that the driver supports.

Return value

GetSupportedVersions returns one of the following values:

Return codeDescription
S_OK

The capabilities are successfully retrieved.

E_OUTOFMEMORY

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

 

Remarks

When the Direct3D runtime calls the driver's OpenAdapter10_2 function, the Interface and Version members of the D3D10DDIARG_OPENADAPTER structure contain the DDI version that the runtime uses to instantiate the driver. The driver can completely ignore these members. The driver can instead return capabilities and version information out through its GetSupportedVersions function.

Requirements

Target platform

Version

GetSupportedVersions is supported beginning with the Windows 7 operating system.

Header

D3d10umddi.h (include D3d10umddi.h)

See also

D3D10_2DDI_ADAPTERFUNCS
D3D10DDIARG_OPENADAPTER
OpenAdapter10_2

 

 

Send comments about this topic to Microsoft

Show: