// d3d10umddi.h
PFND3D10_2DDI_GETSUPPORTEDVERSIONS Pfnd3d102DdiGetsupportedversions;
HRESULT Pfnd3d102DdiGetsupportedversions(
D3D10DDI_HADAPTER unnamedParam1,
UINT32 *puEntries,
UINT64 *pSupportedDDIInterfaceVersions
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The GetSupportedVersions function queries for the Direct3D interface versions that the driver supports.
unnamedParam1hAdapter [in]
A handle that identifies the graphics adapter.
puEntriesA 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.
pSupportedDDIInterfaceVersionsA pointer to a block of memory that receives the array of Direct3D interface versions that the driver supports.
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. |
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.