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

> 可讓您轉換邏輯上相鄰的子資源範圍。

可讓您轉換邏輯上相鄰的子資源範圍。

## 語法

```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 主機)](/zh-TW/reference/graphics/d3d12/structs/d3d12_texture_barrier_public.md)
- [D3D12_SUBRESOURCE_RANGE_UINT64](/zh-TW/reference/graphics/d3d12/structs/d3d12_subresource_range_uint64_public.md)
- [D3D12_BARRIER_GROUP (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/structs/d3d12_barrier_group_public.md)
- [D3D12_BUFFER_BARRIER (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/structs/d3d12_buffer_barrier_public.md)
- [D3D12_GLOBAL_BARRIER (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/structs/d3d12_global_barrier_public.md)
