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

> Allows you to transition logically-adjacent ranges of subresources.

Allows you to transition logically-adjacent ranges of subresources.

## Syntax

```cpp theme={null}
typedef struct D3D12_BARRIER_SUBRESOURCE_RANGE
{
    UINT IndexOrFirstMipLevel;
    UINT NumMipLevels;
    UINT FirstArraySlice;
    UINT NumArraySlices;
    UINT FirstPlane;
    UINT NumPlanes;
} D3D12_BARRIER_SUBRESOURCE_RANGE
```

### Members

*IndexOrFirstMipLevel*\
Type: UINT

The index of the first mip level in the range; or a subresource index, if *NumMipLevels* is zero. If a subresource index, then you can use the value `0xffffffff` to specify all subresources.

*NumMipLevels*\
Type: UINT

Number of mip levels in the range, or zero to indicate that *IndexOrFirstMipLevel* is a subresource index.

*FirstArraySlice*\
Type: UINT

Index of first array slice in the range. Ignored if *NumMipLevels* is zero.

*NumArraySlices*\
Type: UINT

Number of array slices in the range. Ignored if *NumMipLevels* is zero.

*FirstPlane*\
Type: UINT

First plane slice in the range. Ignored if *NumMipLevels* is zero.

*NumPlanes*\
Type: UINT

Number of plane slices in the range. Ignored if *NumMipLevels* is zero.

## 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_SUBRESOURCE_RANGE_UINT64](/reference/graphics/d3d12/structs/d3d12_subresource_range_uint64_public.md)
- [D3D12_BARRIER_GROUP (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_barrier_group_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)
