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

> Describes a 3D box.

Describes a 3D box.

## Syntax

```cpp theme={null}
typedef struct D3D12_BOX
{
    UINT left;
    UINT top;
    UINT front;
    UINT right;
    UINT bottom;
    UINT back;
} D3D12_BOX
```

### Members

*left*\
Type: UINT

The x position of the left hand side of the box.

*top*\
Type: UINT

The y position of the top of the box.

*front*\
Type: UINT

The z position of the front of the box.

*right*\
Type: UINT

The x position of the right hand side of the box, plus 1. This means that <code>right - left</code> equals the width of the box.

*bottom*\
Type: UINT

The y position of the bottom of the box, plus 1. This means that <code>bottom - top</code> equals the height of the box.

*back*\
Type: UINT

The z position of the back of the box, plus 1. This means that <code>back - front</code> equals the depth of the box.

## Remarks

This structure is used by the methods [WriteToSubresource](/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_writetosubresource_public), [ReadFromSubresource](/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_readfromsubresource_public) and [CopyTextureRegion](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytextureregion_public).

## 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\_BOX](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-box)

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


## Related topics

- [ReadFromSubresource](/reference/graphics/d3d12/interfaces/id3d12resource/methods/id3d12resource_readfromsubresource_public.md)
- [D3D12_RAYTRACING_AABB (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_raytracing_aabb_public.md)
- [D3D12_TILE_REGION_SIZE](/reference/graphics/d3d12/structs/d3d12_tile_region_size_public.md)
- [D3D12_TILE_COPY_FLAGS](/reference/graphics/d3d12/enums/d3d12_tile_copy_flags_public.md)
- [D3D12_RAYTRACING_GEOMETRY_AABBS_DESC (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_raytracing_geometry_aabbs_desc_public.md)
