| Previous | Next |
| DXGI_ERROR_UNSUPPORTED | DXGI_ERROR_DEVICE_HUNG |
DXGI_ERROR_DEVICE_REMOVED
DXGI_ERROR_DEVICE_REMOVED means that the Direct3D device can no longer be used. Microsoft documents normal causes such as a driver upgrade, a physical adapter change, a power-related adapter switch, or a graphics-device reset; the code alone does not prove a hardware defect.
Required recovery
- Call
GetDeviceRemovedReasonbefore releasing the old device so the underlying reason is preserved for diagnostics. - Release the swap chain and all resources created from the old device, then create a new device, swap chain, and device-dependent resources.
- Keep CPU-side application state separate from GPU resources so it can be reuploaded or rebuilt after recovery.
Diagnose recurring events
Log the adapter identity, driver version, removed reason, last graphics operation, and whether the system changed displays or power state. Repeated events with the same reason can indicate an application command problem, a driver issue, or hardware instability and should not be hidden by an endless recreate loop.
Microsoft: handling device-removed scenarios · Microsoft: GetDeviceRemovedReason
Looking for a different code? Search another status or error code.