IDXGIAdapter::CheckInterfaceSupport method
Checks whether the system supports a device interface for a graphics component.
Syntax
HRESULT CheckInterfaceSupport(
[in] REFGUID InterfaceName,
[out] LARGE_INTEGER *pUMDVersion
);
Parameters
- InterfaceName [in]
-
Type: REFGUID
The GUID of the interface of the device version for which support is being checked. For example, __uuidof(ID3D10Device).
- pUMDVersion [out]
-
Type: LARGE_INTEGER*
The user mode driver version of InterfaceName. This is returned only if the interface is supported, otherwise this parameter will be NULL.
Return value
Type: HRESULT
S_OK indicates that the interface is supported, otherwise DXGI_ERROR_UNSUPPORTED is returned (For more information, see DXGI_ERROR).
Remarks
Note You can use CheckInterfaceSupport only to check whether a Direct3D 10.x interface is supported, and only on Windows Vista SP1 and later versions of the operating system. If you try to use CheckInterfaceSupport to check whether a Direct3D 11.x and later version interface is supported, CheckInterfaceSupport returns DXGI_ERROR_UNSUPPORTED. Therefore, do not use CheckInterfaceSupport. Instead, to verify whether the operating system supports a particular interface, try to create the interface. For example, if you call the ID3D11Device::CreateBlendState method and it fails, the operating system does not support the ID3D11BlendState interface.
Requirements
|
Header |
|
|---|---|
|
Library |
|
See also
Show: