> ## 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_BARRIER_GROUP (XBOX Series consoles)

> Describes a group of barriers of a given type.

Describes a group of barriers of a given type.

## Syntax

```cpp theme={null}
typedef struct D3D12_BARRIER_GROUP
{
    D3D12_BARRIER_TYPE Type;
    UINT32 NumBarriers;
    const D3D12_GLOBAL_BARRIER  pGlobalBarriers;
    const D3D12_TEXTURE_BARRIER  pTextureBarriers;
    const D3D12_BUFFER_BARRIER  pBufferBarriers;
} D3D12_BARRIER_GROUP
```

### Members

*Type*\
Type: D3D12\_BARRIER\_TYPE

The type of barriers in the group.

*NumBarriers*\
Type: UINT32

The number of barriers in the group.

*pGlobalBarriers*\
Type: const D3D12\_GLOBAL\_BARRIER \*

A pointer to an array of [D3D12\_GLOBAL\_BARRIER](/reference/graphics/d3d12/structs/d3d12_global_barrier_public) structures, if *Type* is **D3D12\_BARRIER\_TYPE::D3D12\_BARRIER\_TYPE\_GLOBAL**.

*pTextureBarriers*\
Type: const D3D12\_TEXTURE\_BARRIER \*

A pointer to an array of [D3D12\_TEXTURE\_BARRIER](/reference/graphics/d3d12/structs/d3d12_texture_barrier_public) structures, if *Type* is **D3D12\_BARRIER\_TYPE::D3D12\_BARRIER\_TYPE\_TEXTURE**.

*pBufferBarriers*\
Type: const D3D12\_BUFFER\_BARRIER \*

A pointer to an array of [D3D12\_BUFFER\_BARRIER](/reference/graphics/d3d12/structs/d3d12_buffer_barrier_public) structures, if *Type* is **D3D12\_BARRIER\_TYPE::D3D12\_BARRIER\_TYPE\_BUFFER**.

## Remarks

## Requirements

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

## See Also


## Related topics

- [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_GLOBAL_BARRIER (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_global_barrier_public.md)
- [D3D12_BARRIER_SUBRESOURCE_RANGE (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_barrier_subresource_range_public.md)
- [D3D12_HIT_GROUP_TYPE (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_hit_group_type_public.md)
