D3D11_BOX structure (d3d11.h)

Defines a 3D box.

Syntax

typedef struct D3D11_BOX {
  UINT left;
  UINT top;
  UINT front;
  UINT right;
  UINT bottom;
  UINT back;
} D3D11_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.

bottom

Type: UINT

The y position of the bottom of the box.

back

Type: UINT

The z position of the back of the box.

Remarks

The following diagram shows a 3D box, where the origin is the left, front, top corner.

Diagram of a 3D box, where the origin is the left, front, top corner

The values for right, bottom, and back are each one pixel past the end of the pixels that are included in the box region. That is, the values for left, top, and front are included in the box region while the values for right, bottom, and back are excluded from the box region. For example, for a box that is one pixel wide, (right - left) == 1; the box region includes the left pixel but not the right pixel.

Coordinates of a box are in bytes for buffers and in texels for textures.

Requirements

Requirement Value
Header d3d11.h

See also

Core Structures