> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RemoveDevice (XBOX Series 콘솔)

> **RemoveDevice**를 호출하여 GPU 디바이스에 문제가 발생하여 더 이상 사용할 수 없음을 Direct3D 12 런타임에 나타낼 수 있습니다.

**RemoveDevice**를 호출하여 GPU 디바이스에 문제가 발생하여 더 이상 사용할 수 없음을 Direct3D 12 런타임에 나타낼 수 있습니다. 이렇게 하면 모든 디바이스의 모니터링되는 펜스가 시그널링됩니다. 애플리케이션은 일반적으로 명시적으로 **RemoveDevice**를 호출할 필요가 없습니다.

## 설명

디바이스 제거는 모든 펜스가 `UINT64_MAX`로 시그널링되도록 트리거하므로, 이벤트를 사용하여 디바이스 제거를 위한 콜백을 만들 수 있습니다.

```cpp theme={null}
HANDLE deviceRemovedEvent = CreateEventW(NULL, FALSE, FALSE, NULL);
assert(deviceRemovedEvent != NULL);
_deviceFence->SetEventOnCompletion(UINT64_MAX, deviceRemoved);

HANDLE waitHandle;
RegisterWaitForSingleObject(
&waitHandle,
deviceRemovedEvent,
OnDeviceRemoved,
_device.Get(), // Pass the device as our context
INFINITE, // No timeout
0 // No flags
);

void OnDeviceRemoved(PVOID context, BOOLEAN)
{
ID3D12Device* removedDevice = (ID3D12Device*)context;
HRESULT removedReason = removedDevice->GetDeviceRemovedReason();
// Perform app-specific device removed operation, such as logging or inspecting DRED output
}
```

## 요구 사항

**헤더:** d3d12\_xs.h\
**라이브러리:** d3d12\_xs.lib\
**지원 플랫폼**: XBOX Series 콘솔

## 함께 보기


## Related topics

- [GetDeviceRemovedReason](/ko/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getdeviceremovedreason_public.md)
- [ID3D12DeviceRemovedExtendedData](/ko/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddata/id3d12deviceremovedextendeddata_public.md)
- [D3D12_DEVICE_REMOVED_EXTENDED_DATA](/ko/reference/graphics/d3d12/structs/d3d12_device_removed_extended_data_public.md)
- [ID3D12DeviceRemovedExtendedDataSettings](/ko/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddatasettings/id3d12deviceremovedextendeddatasettings_public.md)
- [D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA](/ko/reference/graphics/d3d12/structs/d3d12_versioned_device_removed_extended_data_public.md)
