PFND3D10_2DDI_GETSUPPORTEDVERSIONS callback function (d3d10umddi.h)
The GetSupportedVersions function queries for the Direct3D interface versions that the driver supports.
Syntax
PFND3D10_2DDI_GETSUPPORTEDVERSIONS Pfnd3d102DdiGetsupportedversions;
HRESULT Pfnd3d102DdiGetsupportedversions(
D3D10DDI_HADAPTER unnamedParam1,
UINT32 *puEntries,
UINT64 *pSupportedDDIInterfaceVersions
)
{...}
Parameters
unnamedParam1
hAdapter [in]
A handle that identifies the graphics adapter.
puEntries
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
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 code | Description |
---|---|
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
Requirement | Value |
---|---|
Minimum supported client | GetSupportedVersions is supported beginning with the Windows 7 operating system. |
Target Platform | Desktop |
Header | d3d10umddi.h (include D3d10umddi.h, Prdrvcom.h) |