This topic has not yet been rated - Rate this topic

D3DLOCKED_BOX structure

Applies to: desktop apps only

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

Header

D3D9Types.h

See also

IDirect3DVolume9::LockBox
IDirect3DVolumeTexture9::LockBox

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ