Share via


D3DMLOCKED_RECT

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure describes a locked rectangular region.   This structure is used in calls to IDirect3DMobileTexture::LockRect and IDirect3DMobileSurface::LockRect.

Syntax

typedef struct _D3DMLOCKED_RECT {
  INT   Pitch;
  void* pBits;
} D3DMLOCKED_RECT;

Members

  • Pitch
    Pitch of surface, in bytes.

    The pitch for DXTn formats, see D3DMFORMAT, refers to a row of blocks. For example, if you have a width of 16, then you will have a pitch of 4 blocks (4*8 for DXT1, 4*16 for DXT2-5.)

  • pBits
    Pointer to the locked bits. If a RECTL was provided to the LockRect call, pBits will be appropriately offset from the start of the surface.

Requirements

Header d3dmtypes.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Direct3D Mobile Structures