DXGIDeclareAdapterRemovalSupport function

Allows a process to indicate that it's resilient to any of its graphics devices being removed.

Syntax

HRESULT DXGIDeclareAdapterRemovalSupport(

);

Parameters

This function has no parameters.

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-agonistic, 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

   
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

See Also

DXGI AdapterRemovalSupport test sample

DXGI Functions

xGPU UWP sample

xGPU desktop sample