Partager via


D3DSURFACE_DESC

This structure describes a surface.

typedef struct _D3DSURFACE_DESC {
  D3DFORMAT Format;
  D3DRESOURCETYPE Type;
  DWORD Usage;
  D3DPOOL Pool;
  UINT Size;
  D3DMULTISAMPLE_TYPE MultiSampleType;
  UINT Width;
  UINT Height;
} D3DSURFACE_DESC;

Members

  • Format
    Member of the D3DFORMAT enumerated type, describing the surface format.

  • Type
    Member of the D3DRESOURCETYPE enumerated type, identifying this resource as a surface.

  • Usage
    Combination of one or more of the following flags, specifying the usage for this resource.

    Flag Description
    D3DUSAGE_DEPTHSTENCIL Set to indicate that the surface is to be used as a depth stencil surface.
    D3DUSAGE_RENDERTARGET Set to indicate that the surface is to be used as a render target.
  • Pool
    Member of the D3DPOOL enumerated type, specifying the class of memory allocated for this surface.

  • Size
    Size of the surface, in bytes.

  • MultiSampleType
    Member of the D3DMULTISAMPLE_TYPE enumerated type, specifying the levels of full-scene multisampling supported by the surface.

  • Width
    Width of the surface, in pixels.

  • Height
    Height of the surface, in pixels.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3d8types.h.

See Also

IDirect3DSurface8::GetDesc | IDirect3DTexture8::GetLevelDesc | Direct3D Structures

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.