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

> Gets the current value of the fence. (ID3D12Fence.GetCompletedValue)

Gets the current value of the fence.

## Syntax

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

### Parameters

### Return value

Type: UINT64

Returns the current value of the fence. If the device has been removed, the return value will be **UINT64\_MAX**.

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

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

[Multi-engine synchronization](https://learn.microsoft.com/en-us/windows/win32/direct3d12/user-mode-heap-synchronization)


## Related topics

- [GetStatusFence](/reference/graphics/d3d12/interfaces/id3d12protectedsession/methods/id3d12protectedsession_getstatusfence_public.md)
- [Wait](/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_wait_public.md)
- [IDStorageStatusArrayX::GetHResult](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_gethresult.md)
- [items_clawback_completed](/services/playfab/api-references/events/Inventory/items-clawback-completed.md)
- [ticket_completed](/services/playfab/api-references/events/Matchmaking/ticket-completed.md)
