D3DLOCKED_BOX structure

Describes a locked box (volume).

Syntax

typedef struct D3DLOCKED_BOX {
  int  RowPitch;
  int  SlicePitch;
  void *pBits;
} D3DLOCKED_BOX, *LPD3DLOCKED_BOX;

Members

RowPitch

Type: int

Byte offset from the left edge of one row to the left edge of the next row.

SlicePitch

Type: int

Byte offset from the top-left of one slice to the top-left of the next deepest slice.

pBits

Type: void*

Pointer to the beginning of the volume box. If a D3DBOX was provided to the LockBox call, pBits will be appropriately offset from the start of the volume.

Remarks

Volumes can be visualized as being organized into slices of width x height 2D surfaces stacked up to make a width x height x depth volume. For more information, see Volume Texture Resources (Direct3D 9).

Requirements

Requirement Value
Header
D3D9Types.h

See also

Direct3D Structures

IDirect3DVolume9::LockBox

IDirect3DVolumeTexture9::LockBox