ID3D12Device::GetDeviceRemovedReason method (d3d12.h)

Gets the reason that the device was removed, or S_OK if the device isn't removed. To be called back when a device is removed, consider using ID3D12Fence::SetEventOnCompletion with a value of UINT64_MAX. That's because device removal causes all fences to be signaled to that value (which also implies completing all events waited on, because they'll all be less than UINT64_MAX).

Syntax

HRESULT GetDeviceRemovedReason();

Return value

Type: HRESULT

This method returns the reason that the device was removed.

Requirements

Requirement Value
Target Platform Windows
Header d3d12.h
Library D3D12.lib
DLL D3D12.dll

See also

ID3D12Device