> ## 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](/zh-TW/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_map_public) 和 [Unmap](/zh-TW/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)

[核心結構](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

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