D3DMSURFACE_DESC (Windows CE 5.0)

Send Feedback

This structure contains data to describe a surface.

typedef struct _D3DMSURFACE_DESC {  D3DMFORMAT           Format;  D3DMRESOURCETYPE     Type;  ULONG                Usage;  D3DMPOOL             Pool;  UINT                 Size;  D3DMMULTISAMPLE_TYPE MultiSampleType;  UINT                 Width;  UINT                 Height;} D3DMSURFACE_DESC;

Members

  • Format
    A D3DMFORMAT enumeration value describing the pixel format of the data in the surface.
  • Type
    A D3DMRESOURCETYPE enumeration value identifying the type of resource; in this case, D3DMRTYPE_SURFACE, a surface.
  • Usage
    A ULONG value representing a bit mask defining how the application should use the surface. These bits can be hints to the driver to allow it to optimize resource allocations best suited to the surface's use.
  • Pool
    A D3DMPOOL value identifying the memory pool that the surface is allocated from.
  • Size
    A UINT value representing the number of bytes allocated for the surface.
  • MultiSampleType
    A D3DMMULTISAMPLE_TYPE value indicating the type of multisampling used on this surface. You can enable multisampling for render targets, depth buffers, and stencil buffers. For all other surfaces, this value will be D3DMMULTISAMPLE_NONE.
  • Width
    A UINT value representing the width of the surface in pixels.
  • Height
    A UINT value representing the height of the surface in pixels.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: D3dmtypes.h.

See Also

Direct3D Mobile Structures

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.