Microsoft DirectX 8.1 (C++) |
Describes a locked rectangular region.
typedef struct _D3DLOCKED_RECT { INT Pitch; void* pBits; } D3DLOCKED_RECT;
The pitch for DXTn formats is different from what was returned in DirectX 7.0. It now refers to the number of bytes in 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.)
Header: Declared in D3d8types.h.
IDirect3DCubeTexture8::LockRect, IDirect3DSurface8::LockRect, IDirect3DTexture8::LockRect.