DXGIDeclareAdapterRemovalSupport function (dxgi1_6.h)
Allows a process to indicate that it's resilient to any of its graphics devices being removed.
Syntax
HRESULT DXGIDeclareAdapterRemovalSupport();
Return value
Type: HRESULT
Returns S_OK if successful; an error code otherwise. If this function is called after device creation, it returns DXGI_ERROR_INVALID_CALL. If this is not the first time that this function is called, it returns DXGI_ERROR_ALREADY_EXISTS. For a full list of error codes, see DXGI_ERROR.
Remarks
This function is graphics API-agnostic, meaning that apps running on other APIs, such as OpenGL and Vulkan, would also apply.
This function should be called once per process and before any device creation.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1803 [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | dxgi1_6.h |
Library | Dxgi.lib |
DLL | Dxgi.dll |