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

> 允许你转换逻辑上相邻的子资源范围。

允许你转换逻辑上相邻的子资源范围。

## 语法

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

### 成员

*IndexOrFirstMipLevel*\
类型：UINT

范围内第一个 mip 级别的索引；如果 *NumMipLevels* 为零，则为子资源索引。当作为子资源索引时，可以使用值 `0xffffffff` 表示所有子资源。

*NumMipLevels*\
类型：UINT

范围内 mip 级别的数量，或者为零以表示 *IndexOrFirstMipLevel* 是子资源索引。

*FirstArraySlice*\
类型：UINT

范围内第一个数组切片的索引。如果 *NumMipLevels* 为零，则忽略此值。

*NumArraySlices*\
类型：UINT

范围内数组切片的数量。如果 *NumMipLevels* 为零，则忽略此值。

*FirstPlane*\
类型：UINT

范围内的第一个平面切片。如果 *NumMipLevels* 为零，则忽略此值。

*NumPlanes*\
类型：UINT

范围内平面切片的数量。如果 *NumMipLevels* 为零，则忽略此值。

## 备注

## 要求

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

## 另请参阅


## Related topics

- [D3D12_TEXTURE_BARRIER (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_texture_barrier_public.md)
- [D3D12_SUBRESOURCE_RANGE_UINT64](/zh-CN/reference/graphics/d3d12/structs/d3d12_subresource_range_uint64_public.md)
- [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_GLOBAL_BARRIER (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/structs/d3d12_global_barrier_public.md)
