Share via


D3DM_CreateSurface (Windows Embedded CE 6.0)

1/6/2010

This function is called by the Direct3D Mobile middleware to tell the driver to create a surface.

Syntax

typedef DWORD (*D3DM_CREATESURFACE_PTR)(D3DM_CREATESURFACE_DATA *);

Parameters

  • D3DM_CREATESURFACE_DATA
    [in, out] A pointer to a D3DM_CREATESURFACE_DATA structure describing the properties of the surface that the driver should create.

Return Value

Implement this function so that it returns D3DM_DRIVER_HANDLED at all times, even if an error occurred.

Remarks

In many cases, the middleware may not provide complete surface descriptions in the SurfaceDesc, VertexDesc, IndexDesc, and TextureDesc members of D3DM_CREATESURFACE_DATA when it calls D3DM_CreateSurface. In these cases the driver is expected to fill in the missing data for itself.

For more implementation details, see D3DM_CREATESURFACE_DATA.

Requirements

Header d3dmddk.h
Library Developer Implemented
Windows Embedded CE Windows CE 5.0

See Also

Reference

Direct3D Mobile Driver Functions
D3DM_DestroySurface
D3DM_CREATESURFACE_DATA

Concepts

Surface Creation by Direct3D Mobile Drivers