HEAPALIGNMENT structure (dmemmgr.h)

The HEAPALIGNMENT structure contains data specifying the alignment requirements for a given display memory heap.

Syntax

typedef struct _HEAPALIGNMENT {
  DWORD            dwSize;
  DDSCAPS          ddsCaps;
  DWORD            dwReserved;
  SURFACEALIGNMENT ExecuteBuffer;
  SURFACEALIGNMENT Overlay;
  SURFACEALIGNMENT Texture;
  SURFACEALIGNMENT ZBuffer;
  SURFACEALIGNMENT AlphaBuffer;
  SURFACEALIGNMENT Offscreen;
  SURFACEALIGNMENT FlipTarget;
} HEAPALIGNMENT, *LPHEAPALIGNMENT;

Members

dwSize

Specifies the size in bytes of this HEAPALIGNMENT structure.

ddsCaps

Specifies a DDSCAPS structure that indicates what alignment fields are valid.

dwReserved

Reserved for system use.

ExecuteBuffer

Specifies a SURFACEALIGNMENT structure that contains heap alignment requirements for surfaces tagged with DDSCAPS_EXECUTEBUFFER.

Overlay

Specifies a SURFACEALIGNMENT structure that contains heap alignment requirements for surfaces tagged with DDSCAPS_OVERLAY.

Texture

Specifies a SURFACEALIGNMENT structure that contains heap alignment requirements for surfaces tagged with DDSCAPS_TEXTURE.

ZBuffer

Specifies a SURFACEALIGNMENT structure that contains heap alignment requirements for surfaces tagged with DDSCAPS_ZBUFFER.

AlphaBuffer

Specifies a SURFACEALIGNMENT structure that contains heap alignment requirements for surfaces tagged with DDSCAPS_ALPHA.

Offscreen

Specifies a SURFACEALIGNMENT structure that contains heap alignment requirements for surfaces tagged with DDSCAPS_OFFSCREENPLAIN.

FlipTarget

Specifies a SURFACEALIGNMENT structure that contains heap alignment requirements for surfaces tagged with DDSCAPS_FLIP.

Remarks

The driver should verify that the dwSize member is at least as large as sizeof(HEAPALIGNMENT).

Requirements

Requirement Value
Header dmemmgr.h (include Dmemmgr.h)

See also

DDSCAPS

SURFACEALIGNMENT