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

# D3D12XBOX_SYNC_CONTROL_FLAGS (XBOX Series 主機)

> 指定在數個同步處理 API 中，對同步處理作業提供額外控制的旗標。

指定在 [SyncTopOfPipeX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_synctopofpipex)、[SyncBottomOfPipeX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_syncbottomofpipex)、[Write32BitValueBottomOfPipe2X](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_write32bitvaluebottomofpipe2x)、[Write64BitValueBottomOfPipe2X](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_write64bitvaluebottomofpipe2x)、[WaitX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/methods/id3d12commandqueue_waitx) 和 [Signal2X](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/methods/id3d12commandqueue_signal2x) 中，對同步處理作業提供額外控制的旗標。

## 語法

```cpp theme={null}
typedef enum D3D12XBOX_SYNC_CONTROL_FLAGS  : UINT  
{  
    D3D12XBOX_SYNC_CONTROL_FLAG_NONE = 0x00000000,  
    D3D12XBOX_SYNC_CONTROL_FLAG_TOP_SELECT_ENGINE_PFP = 0x80000000,  
    D3D12XBOX_SYNC_CONTROL_FLAG_TOP_SELECT_ENGINE_CE = 0x40000000,  
    D3D12XBOX_SYNC_CONTROL_FLAG_IDLE_SELECT_ENGINE_PFP = 0x20000000,  
    D3D12XBOX_SYNC_CONTROL_FLAG_IDLE_SELECT_ENGINE_CE = D3D12XBOX_SYNC_CONTROL_FLAG_TOP_SELECT_ENGINE_CE,  
    D3D12XBOX_SYNC_CONTROL_FLAG_CPDMA_SELECT_ENGINE_PFP = 0x01000000,  
    D3D12XBOX_SYNC_CONTROL_FLAG_GCR_SEQUENCE_FORWARD    = 0x00010000,  
    D3D12XBOX_SYNC_CONTROL_FLAG_GCR_SEQUENCE_REVERSE    = 0x00020000,  
} D3D12XBOX_SYNC_CONTROL_FLAGS  
```

## 常數

| 常數 | 描述 |
| - | - |
| D3D12XBOX\_SYNC\_CONTROL\_FLAG\_NONE | 無旗標。 |
| D3D12XBOX\_SYNC\_CONTROL\_FLAG\_TOP\_SELECT\_ENGINE\_PFP | 此旗標會指示預先擷取剖析器引擎 (PFP)，而非微引擎 (ME)，執行管線頂端同步處理所指定的快取排清。 |
| D3D12XBOX\_SYNC\_CONTROL\_FLAG\_TOP\_SELECT\_ENGINE\_CE | 此旗標會指示常數引擎 (CE) 封鎖，直到所有管線頂端同步處理作業完成為止。 |
| D3D12XBOX\_SYNC\_CONTROL\_FLAG\_IDLE\_SELECT\_ENGINE\_PFP | 此旗標會指示預先擷取剖析器引擎 (PFP) 參與 [D3D12XBOX\_SYNC\_FLAG\_IDLE](/zh-TW/reference/graphics/d3d12_xs/enums/d3d12xbox_sync_flags) 同步處理指示詞。 |
| D3D12XBOX\_SYNC\_CONTROL\_FLAG\_IDLE\_SELECT\_ENGINE\_CE | 此旗標會指示常數引擎 (CE) 參與 [D3D12XBOX\_SYNC\_FLAG\_IDLE](/zh-TW/reference/graphics/d3d12_xs/enums/d3d12xbox_sync_flags) 同步處理指示詞。 |
| D3D12XBOX\_SYNC\_CONTROL\_FLAG\_CPDMA\_SELECT\_ENGINE\_PFP | 此旗標會使 [D3D12XBOX\_SYNC\_FLAG\_SYNC\_CPDMA](/zh-TW/reference/graphics/d3d12_xs/enums/d3d12xbox_sync_flags) 旗標等候預先擷取剖析器引擎 (PFP) 的 CPDMA 交易，而非微引擎 (ME) 的 CPDMA 交易。 |
| D3D12XBOX\_SYNC\_CONTROL\_FLAG\_GCR\_SEQUENCE\_FORWARD | 以 GL0、GL1、再 GL2 的正向順序套用相關聯的 GCR 同步處理作業 (預設會在各快取上平行套用作業)。 |
| D3D12XBOX\_SYNC\_CONTROL\_FLAG\_GCR\_SEQUENCE\_REVERSE | 以 GL2、GL1、再 GL0 的反向順序套用相關聯的 GCR 同步處理作業 (預設會在各快取上平行套用作業)。 |

## 備註

在下列 API 中與一組相關聯的 [D3D12XBOX\_SYNC\_FLAGS](/zh-TW/reference/graphics/d3d12_xs/enums/d3d12xbox_sync_flags) 搭配使用，以控制應如何套用同步處理:

* 此列舉會傳入 [SyncTopOfPipeX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_synctopofpipex)。
* 此列舉會傳入 [SyncBottomOfPipeX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_syncbottomofpipex)。
* 此列舉會傳入 [Write32BitValueBottomOfPipe2X](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_write32bitvaluebottomofpipe2x)。
* 此列舉會傳入 [Write64BitValueBottomOfPipe2X](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_write64bitvaluebottomofpipe2x)。
* 此列舉會間接傳入 [WaitX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/methods/id3d12commandqueue_waitx)。
* 此列舉會間接傳入 [Signal2X](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/methods/id3d12commandqueue_signal2x)。

也會由 [ResourceBarrierX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_resourcebarrierx) 間接傳回 (透過 [D3D12XBOX\_RESOURCE\_BARRIER\_SUMMARY\_ACTIONS](/zh-TW/reference/graphics/d3d12_xs/structs/d3d12xbox_resource_barrier_summary_actions)) 結構。

## 需求

**標頭:** d3d12\_xs.h
**支援的平台**: XBOX Series 主機

## 另請參閱

[d3d12\_xs](/zh-TW/reference/graphics/d3d12_xs/d3d12_xs_members)\
[D3D12XBOX\_RESOURCE\_BARRIER\_SUMMARY\_ACTIONS](/zh-TW/reference/graphics/d3d12_xs/structs/d3d12xbox_resource_barrier_summary_actions)\
[D3D12XBOX\_SYNC\_FLAGS](/zh-TW/reference/graphics/d3d12_xs/enums/d3d12xbox_sync_flags)\
[ResourceBarrierX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_resourcebarrierx)\
[Signal2X](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/methods/id3d12commandqueue_signal2x)\
[SyncTopOfPipeX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_synctopofpipex)\
[SyncBottomOfPipeX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_syncbottomofpipex)\
[Write32BitValueBottomOfPipe2X](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_write32bitvaluebottomofpipe2x)\
[Write64BitValueBottomOfPipe2X](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_write64bitvaluebottomofpipe2x)\
[WaitX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12CommandQueue/methods/id3d12commandqueue_waitx)


## Related topics

- [D3D12_SHADER_CACHE_CONTROL_FLAGS (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/enums/d3d12_shader_cache_control_flags_public.md)
- [D3D12_TEXTURE_BARRIER (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/structs/d3d12_texture_barrier_public.md)
- [D3D12_EXPORT_FLAGS (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/enums/d3d12_export_flags_public.md)
- [D3D12_COMMAND_LIST_FLAGS (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/enums/d3d12_command_list_flags_public.md)
- [D3D12_RAYTRACING_INSTANCE_FLAGS (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/enums/d3d12_raytracing_instance_flags_public.md)
