D3DXERR enumeration

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.

Syntax


enum _D3DXERR {
  D3DXERR_CANNOTMODIFYINDEXBUFFER, 
  D3DXERR_INVALIDMESH, 
  D3DXERR_CANNOTATTRSORT, 
  D3DXERR_SKINNINGNOTSUPPORTED, 
  D3DXERR_TOOMANYINFLUENCES, 
  D3DXERR_INVALIDDATA, 
  D3DXERR_LOADEDMESHASNODATA, 
  D3DXERR_DUPLICATENAMEDFRAGMENT, 
  D3DXERR_CANNOTREMOVELASTITEM 

};

Constants

D3DXERR_CANNOTMODIFYINDEXBUFFER

The index buffer cannot be modified.

D3DXERR_INVALIDMESH

The mesh is invalid.

D3DXERR_CANNOTATTRSORT

Attribute sort (D3DXMESHOPT_ATTRSORT) is not supported as an optimization technique.

D3DXERR_SKINNINGNOTSUPPORTED

Skinning is not supported.

D3DXERR_TOOMANYINFLUENCES

Too many influences specified.

D3DXERR_INVALIDDATA

The data is invalid.

D3DXERR_LOADEDMESHASNODATA

The mesh has no data.

D3DXERR_DUPLICATENAMEDFRAGMENT

A fragment with that name already exists.

D3DXERR_CANNOTREMOVELASTITEM

The last item cannot be deleted.

Remarks

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),
    ...
    };


Requirements

Header

D3dx9.h

See also

D3DX Enumerations

 

 

Show: