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

> 获取用于创建当前实例所表示的围栏的标志。

获取用于创建当前实例所表示的围栏的标志。

## 语法

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

### 参数

### 返回值

类型：D3D12\_FENCE\_FLAGS

用于创建围栏的标志。

## 备注

**GetCreationFlags** 返回的标志主要用于打开共享围栏。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

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

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


## Related topics

- [XblMultiplayerSearchHandleGetCreationTime](/zh-CN/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetcreationtime.md)
- [XGameStreamingVideoFlags](/zh-CN/reference/system/xgamestreaming/enums/xgamestreamingvideoflags.md)
- [game_chat_communication_relationship_flags](/zh-CN/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)
- [GetHeapProperties](/zh-CN/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_getheapproperties_public.md)
- [XGameUiTextEntryChangeTypeFlags](/zh-CN/reference/system/xgameui/enums/xgameuitextentrychangetypeflags.md)
