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

> Describes a resource memory access barrier. Used by global, texture, and buffer barriers to indicate when resource memory must be made visible for a specific.

Describes a resource memory access barrier. Used by global, texture, and buffer barriers to indicate when resource memory must be made visible for a specific access type.

## Syntax

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

### Members

*SyncBefore*\
Type: D3D12\_BARRIER\_SYNC

Synchronization scope of all preceding GPU work that must be completed before executing the barrier.

*SyncAfter*\
Type: D3D12\_BARRIER\_SYNC

Synchronization scope of all subsequent GPU work that must wait until the barrier execution is finished.

*AccessBefore*\
Type: D3D12\_BARRIER\_ACCESS

Access bits corresponding with any relevant resource usage since the preceding barrier or the start of **ExecuteCommandLists** scope.

*AccessAfter*\
Type: D3D12\_BARRIER\_ACCESS

Access bits corresponding with any relevant resource usage after the barrier completes.

## Remarks

## Requirements

**Header:** d3d12\_xs.h\
**Library:** d3d12\_xs.lib\
**Supported Platforms**: XBOX Series consoles

## See Also


## Related topics

- [D3D12_BARRIER_GROUP (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_barrier_group_public.md)
- [D3D12_TEXTURE_BARRIER (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_texture_barrier_public.md)
- [D3D12_BUFFER_BARRIER (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_buffer_barrier_public.md)
- [D3D12_BARRIER_SUBRESOURCE_RANGE (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_barrier_subresource_range_public.md)
- [D3D12_WAVE_MMA_TIER (XBOX Series consoles)](/reference/graphics/d3d12_xs/enums/d3d12_wave_mma_tier_xs.md)
