> ## 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.

# GetCompletedValue

> 取得柵欄的目前值。(ID3D12Fence.GetCompletedValue)

取得柵欄的目前值。

## 語法

```cpp theme={null}
UINT64 GetCompletedValue(
)
```

### 參數

### 傳回值

類型：UINT64

傳回柵欄的目前值。如果裝置已移除，傳回值會是 **UINT64\_MAX**。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機和 XBOX One 系列

## 另請參閱

[ID3D12Fence](/zh-TW/reference/graphics/d3d12/interfaces/id3d12fence/id3d12fence_public)

[多引擎同步處理](https://learn.microsoft.com/en-us/windows/win32/direct3d12/user-mode-heap-synchronization)


## Related topics

- [GetStatusFence](/zh-TW/reference/graphics/d3d12/interfaces/id3d12protectedsession/methods/id3d12protectedsession_getstatusfence_public.md)
- [Wait](/zh-TW/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_wait_public.md)
- [export_completed](/zh-TW/services/playfab/api-references/events/Extension/export-completed.md)
- [ticket_completed](/zh-TW/services/playfab/api-references/events/Matchmaking/ticket-completed.md)
- [GetPMCValue](/zh-TW/reference/tools/pix3/functions/getpmcvalue.md)
