Skip to main content
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

Parameters

Return value

Type: HRESULT This method returns the reason that the device was removed.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

ID3D12Device
Last modified on August 20, 2026