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

# Barrier (XBOX Series 主機)

> 將一組屏障新增至圖形命令清單記錄中。

將一組屏障新增至圖形命令清單記錄中。

需要 DirectX 12 Agility SDK 1.7 或更新版本。

## 語法

```cpp theme={null}
void Barrier(
    UINT32 NumBarrierGroups,
    const D3D12_BARRIER_GROUP  pBarrierGroups
)
```

### 參數

*NumBarrierGroups*\
類型：UINT32

*pBarrierGroups* 所指向的屏障群組數目。

*pBarrierGroups*\
類型：const D3D12\_BARRIER\_GROUP \*

指向 [D3D12\_BARRIER\_GROUP](https://devdocs.xbox.com/zh-TW/reference/graphics/d3d12/structs/d3d12_barrier_group_public.md) 物件陣列的指標。

### 傳回值

類型：void

無。

## 備註

## 需求

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

## 另請參閱


## Related topics

- [D3D12_TEXTURE_BARRIER (XBOX Series 主機)](https://devdocs.xbox.com/zh-TW/reference/graphics/d3d12/structs/d3d12_texture_barrier_public.md)
- [D3D12_BUFFER_BARRIER (XBOX Series 主機)](https://devdocs.xbox.com/zh-TW/reference/graphics/d3d12/structs/d3d12_buffer_barrier_public.md)
- [D3D12_GLOBAL_BARRIER (XBOX Series 主機)](https://devdocs.xbox.com/zh-TW/reference/graphics/d3d12/structs/d3d12_global_barrier_public.md)
- [D3D12_BARRIER_GROUP (XBOX Series 主機)](https://devdocs.xbox.com/zh-TW/reference/graphics/d3d12/structs/d3d12_barrier_group_public.md)
- [D3D12_BARRIER_SUBRESOURCE_RANGE (XBOX Series 主機)](https://devdocs.xbox.com/zh-TW/reference/graphics/d3d12/structs/d3d12_barrier_subresource_range_public.md)
