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

# GetCreationFlags

> Gets the flags used to create the fence represented by the current instance.

Gets the flags used to create the fence represented by the current instance.

## Syntax

```cpp theme={null}
D3D12_FENCE_FLAGS GetCreationFlags(
)
```

### Parameters

### Return value

Type: D3D12\_FENCE\_FLAGS

The flags used to create the fence.

## Remarks

The flags returned by **GetCreationFlags** are used mainly for opening a shared fence.

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

[Id3d12fence1](/reference/graphics/d3d12/interfaces/id3d12fence1/id3d12fence1_public)

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


## Related topics

- [Title packaging, updates, and streaming-install testing](/build/core-features/common/packaging/title-packaging-streaming-install-testing.md)
- [XblMultiplayerSearchHandleGetCreationTime](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetcreationtime.md)
- [D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION](/reference/graphics/d3d12/structs/d3d12_subobject_to_exports_association_public.md)
- [CreateCommandList1 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_createcommandlist1_public.md)
- [GSDK Example Project Creation](/services/playfab/multiplayer/servers/server-sdks/unreal-gsdk/third-person-mp-example-project-setup.md)
