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

> 描述一个内存范围。

描述一个内存范围。

## 语法

```cpp theme={null}
typedef struct D3D12_RANGE
{
    SIZE_T Begin;
    SIZE_T End;
} D3D12_RANGE
```

### 成员

*Begin*\
类型：SIZE\_T

标记内存范围起始处的偏移量（以字节为单位）。

*End*\
类型：SIZE\_T

标记内存范围结束处的偏移量（以字节为单位）。
**End** 是"末尾之后一个位置"。

## 备注

**End** 是"末尾之后一个位置"。
当 **Begin** 等于 **End** 时，范围为空。
范围的大小为 (**End** - **Begin**)。

此结构由 [Map](/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_map_public) 和 [Unmap](/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_unmap_public) 方法使用。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

[CD3DX12\_RANGE](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-range)

[Core Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [Unmap](/zh-CN/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_unmap_public.md)
- [Map](/zh-CN/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_map_public.md)
- [D3D12_RANGE_UINT64](/zh-CN/reference/graphics/d3d12/structs/d3d12_range_uint64_public.md)
- [D3D12_SUBRESOURCE_RANGE_UINT64](/zh-CN/reference/graphics/d3d12/structs/d3d12_subresource_range_uint64_public.md)
- [D3D12_DESCRIPTOR_RANGE](/zh-CN/reference/graphics/d3d12/structs/d3d12_descriptor_range_public.md)
