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

> Describes a memory range.

Describes a memory range.

## Syntax

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

### Members

*Begin*\
Type: SIZE\_T

The offset, in bytes, denoting the beginning of a memory range.

*End*\
Type: SIZE\_T

The offset, in bytes, denoting the end of a memory range.
**End** is one-past-the-end.

## Remarks

**End** is one-past-the-end.
When **Begin** equals **End**, the range is empty.
The size of the range is (**End** - **Begin**).

This structure is used by the [Map](/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_map_public) and [Unmap](/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_unmap_public) methods.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[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](/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_unmap_public.md)
- [Map](/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_map_public.md)
- [D3D12_RANGE_UINT64](/reference/graphics/d3d12/structs/d3d12_range_uint64_public.md)
- [D3D12_SUBRESOURCE_RANGE_UINT64](/reference/graphics/d3d12/structs/d3d12_subresource_range_uint64_public.md)
- [D3D12_DESCRIPTOR_RANGE](/reference/graphics/d3d12/structs/d3d12_descriptor_range_public.md)
