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

# D3D12_GLOBAL_BARRIER (XBOX Series 主机)

> 描述资源内存访问屏障。由全局、纹理和缓冲区屏障使用,以指示何时必须为特定内容显示资源内存。

描述资源内存访问屏障。由全局、纹理和缓冲区屏障使用,以指示何时必须为特定访问类型显示资源内存。

## 语法

```cpp theme={null}
typedef struct D3D12_GLOBAL_BARRIER
{
    D3D12_BARRIER_SYNC SyncBefore;
    D3D12_BARRIER_SYNC SyncAfter;
    D3D12_BARRIER_ACCESS AccessBefore;
    D3D12_BARRIER_ACCESS AccessAfter;
} D3D12_GLOBAL_BARRIER
```

### 成员

*SyncBefore*\
类型:D3D12\_BARRIER\_SYNC

必须在执行屏障之前完成的所有先前 GPU 工作的同步范围。

*SyncAfter*\
类型:D3D12\_BARRIER\_SYNC

必须等到屏障执行完成的所有后续 GPU 工作的同步范围。

*AccessBefore*\
类型:D3D12\_BARRIER\_ACCESS

自上一个屏障或 **ExecuteCommandLists** 范围开始以来对应任何相关资源使用情况的访问位。

*AccessAfter*\
类型:D3D12\_BARRIER\_ACCESS

屏障完成后对应任何相关资源使用情况的访问位。

## 备注

## 要求

**头文件:** d3d12\_xs.h\
**库:** d3d12\_xs.lib\
**支持的平台**:XBOX Series 主机

## 另请参阅


## Related topics

- [D3D12_BARRIER_GROUP (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_barrier_group_public.md)
- [D3D12_BUFFER_BARRIER (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_buffer_barrier_public.md)
- [D3D12_TEXTURE_BARRIER (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_texture_barrier_public.md)
- [D3D12_BARRIER_SUBRESOURCE_RANGE (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_barrier_subresource_range_public.md)
- [D3D12_ELEMENTS_LAYOUT (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/enums/d3d12_elements_layout_public.md)
