Skip to main content
Describes a 3D box.

Syntax

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 right - left equals the width of the box. bottom
Type: UINT
The y position of the bottom of the box, plus 1. This means that bottom - top equals the height of the box. back
Type: UINT
The z position of the back of the box, plus 1. This means that back - front equals the depth of the box.

Remarks

This structure is used by the methods WriteToSubresource, ReadFromSubresource and CopyTextureRegion.

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 Core Structures
Last modified on August 20, 2026