Share via


D3DMERR Values (Windows Embedded CE 6.0)

1/6/2010

These macros are HRESULT values that the Direct3D Mobile middleware returns when it encounters errors.

Syntax

#define D3DMERR_ALREADYLOCKED                   MAKE_D3DMHRESULT(2158)
#define D3DMERR_CONFLICTINGRENDERSTATE          MAKE_D3DMHRESULT(2081)
#define D3DMERR_CONFLICTINGTEXTUREFILTER        MAKE_D3DMHRESULT(2078)
#define D3DMERR_CONFLICTINGTEXTUREPALETTE       MAKE_D3DMHRESULT(2086)
#define D3DMERR_DEVICELOST                      MAKE_D3DMHRESULT(2152)
#define D3DMERR_DEVICENOTRESET                  MAKE_D3DMHRESULT(2153)
#define D3DMERR_DRIVERINTERNALERROR             MAKE_D3DMHRESULT(2087)
#define D3DMERR_DRIVERINVALIDCALL               MAKE_D3DMHRESULT(2157)
#define D3DMERR_DRIVERUNSUPPORTED               MAKE_D3DMHRESULT(2088)
#define D3DMERR_INVALIDCALL                     MAKE_D3DMHRESULT(2156)
#define D3DMERR_INVALIDDEVICE                   MAKE_D3DMHRESULT(2155)
#define D3DMERR_MEMORYPOOLEMPTY                 MAKE_D3DMHRESULT(380)
#define D3DMERR_MOREDATA                        MAKE_D3DMHRESULT(2151)
#define D3DMERR_NOTAVAILABLE                    MAKE_D3DMHRESULT(2154)
#define D3DMERR_NOTFOUND                        MAKE_D3DMHRESULT(2150)
#define D3DMERR_TOOMANYOPERATIONS               MAKE_D3DMHRESULT(2077)
#define D3DMERR_UNSUPPORTEDALPHAARG             MAKE_D3DMHRESULT(2076)
#define D3DMERR_UNSUPPORTEDALPHAOPERATION       MAKE_D3DMHRESULT(2075)
#define D3DMERR_UNSUPPORTEDCOLORARG             MAKE_D3DMHRESULT(2074)
#define D3DMERR_UNSUPPORTEDCOLOROPERATION       MAKE_D3DMHRESULT(2073)
#define D3DMERR_UNSUPPORTEDFACTORVALUE          MAKE_D3DMHRESULT(2079)
#define D3DMERR_UNSUPPORTEDTEXTUREFILTER        MAKE_D3DMHRESULT(2082)
#define D3DMERR_WRONGTEXTUREFORMAT              MAKE_D3DMHRESULT(2072)

Remarks

The following table shows the individual D3DMERR values.

Value Description

D3DMERR_ALREADYLOCKED

Returned when a surface has already been locked and another lock request has been made to it.

D3DMERR_CONFLICTINGRENDERSTATE

Returned when the currently set render states cannot be used together.

D3DMERR_CONFLICTINGTEXTUREFILTER

Returned when the current texture filters cannot be used together.

D3DMERR_CONFLICTINGTEXTUREPALETTE

Returned when the current textures cannot be used simultaneously. This generally occurs when a multi-texture device requires that all simultaneously enabled palletized textures share the same palette.

D3DMERR_DEVICELOST

Returned when a device is no longer accessible after recovering from a power down.

D3DMERR_DEVICENOTRESET

Returned when a lost device could not be reset.

D3DMERR_DRIVERINTERNALERROR

Returned when the driver experiences an internal error that cannot be mapped to another specific return code.

D3DMERR_DRIVERINVALIDCALL

Returned when Direct3D Mobile was unable to make a call to a display driver. This is generated by a parameter failure on a malformed call in the driver.

D3DMERR_DRIVERUNSUPPORTED

Returned when a call does not match the devices capabilities as outlined in the capability bits (see D3DMCAPS).

D3DMERR_INVALIDCALL

Returned when a problem with a parameter passed to a function or method occurs.

D3DMERR_INVALIDDEVICE

Returned when the hook for a device could not be found. This is generated when an unsupported adapter ordinal is passed.

D3DMERR_MEMORYPOOLEMPTY

Returned when an allocation from memory has been made and there is insufficient resources for the request.

D3DMERR_MOREDATA

Returned when a buffer passed into a routine does not contain the sufficient number of elements for the request.

D3DMERR_NOTAVAILABLE

Returned when a requested operation or capability is not supported by a device or resource. This is also returned when a requested format is not available.

D3DMERR_NOTFOUND

Returned when a search routine has failed to return the element(s) requested.

D3DMERR_TOOMANYOPERATIONS

Returned when the application is requesting more texture-filtering operations than the device supports.

D3DMERR_UNSUPPORTEDALPHAARG

Returned when the device does not support a specified texture-blending argument for the alpha channel.

D3DMERR_UNSUPPORTEDALPHAOPERATION

Returned when the device does not support a specified texture-blending operation for the alpha channel.

D3DMERR_UNSUPPORTEDCOLORARG

Returned when the device does not support a specified texture-blending argument for color values.

D3DMERR_UNSUPPORTEDCOLOROPERATION

Returned when the device does not support a specified texture-blending operation for color values.

D3DMERR_UNSUPPORTEDFACTORVALUE

Returned when the device does not support the specified texture factor value.

D3DMERR_UNSUPPORTEDTEXTUREFILTER

Returned when the current texture filters cannot be used together.

D3DMERR_WRONGTEXTUREFORMAT

Returned when the pixel format of the texture surface is not valid.

Requirements

Header d3dm.h
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Direct3D Mobile Macros