> ## 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](/reference/graphics/d3d12/interfaces/id3d12fence/id3d12fence_public)

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


## Related topics

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