Errors are represented by negative values and cannot be combined. The following is a list of values that can be returned by methods included with the D3DX utility library. See the individual method descriptions for lists of the values that each can return. These lists are not necessarily comprehensive.
typedef enum D3DXERR { D3DXERR_CANNOTMODIFYINDEXBUFFER, D3DXERR_INVALIDMESH, D3DXERR_CANNOTATTRSORT, D3DXERR_SKINNINGNOTSUPPORTED, D3DXERR_TOOMANYINFLUENCES, D3DXERR_INVALIDDATA, D3DXERR_LOADEDMESHASNODATA, D3DXERR_DUPLICATENAMEDFRAGMENT, D3DXERR_CANNOTREMOVELASTITEM, } D3DXERR, *LPD3DXERR;
The facility code _FACDD is used to generate error codes, as in the following macros.
#define _FACDD 0x876 #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) enum _D3DXERR { D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900), D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901), ... };