DDSURFACEDESC2 (Direct3D 9)

Bb943981.XDK_CHM_BANNER_left(en-us,VS.85).jpg Bb943981.XDK_CHM_BANNER_right(en-us,VS.85).jpg

DDSURFACEDESC2 (Direct3D 9)

Surface format description.

typedef struct  {
    DWORD dwSize;
    DWORD dwFlags;
    DWORD dwHeight;
    DWORD dwWidth;
    DWORD dwPitchOrLinearSize;
    DWORD dwDepth;
    DWORD dwMipMapCount;
    DWORD dwReserved1[11];
    DDPIXELFORMAT ddpfPixelFormat;
    DDSCAPS2 ddsCaps;
    DWORD dwReserved2;
} DDSURFACEDESC2 (Direct3D 9);

Members

  • dwSize
    Size of structure. This member must be set to 124.
  • dwFlags
    Flags to indicate which members contain valid data.
  • dwHeight
    Surface height (in pixels).
  • dwWidth
    Surface width (in pixels).
  • dwPitchOrLinearSize
    The number of bytes per scan line in an uncompressed texture; the total number of bytes in the top level texture for a compressed texture. The pitch must be DWORD aligned.
  • dwDepth
    Depth of a volume texture (in pixels), otherwise unused.
  • dwMipMapCount
    Number of mipmap levels, otherwise unused.
  • dwReserved1[11]
    Unused.
  • ddpfPixelFormat
    The pixel format (see DDPIXELFORMAT).
  • ddsCaps
    The capabilities (see DDSCAPS2).
  • dwReserved2
    Unused.

Remarks

Include flags in dwFlags for the members of the structure that contain valid data.

See Also

Reference for DDS