D3DXERR
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXERR Enumerated Type


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

typedef enum {
    D3DXERR_CANNOTMODIFYINDEXBUFFER,
    D3DXERR_INVALIDMESH,
    D3DXERR_CANNOTATTRSORT,
    D3DXERR_SKINNINGNOTSUPPORTED,
    D3DXERR_TOOMANYINFLUENCES,
    D3DXERR_INVALIDDATA,
    D3DXERR_LOADEDMESHASNODATA,
    D3DXERR_DUPLICATENAMEDFRAGMENT,
    D3DXERR_CANNOTREMOVELASTITEM
} D3DXERR;

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

Enumerated Type Information

Headerd3dx9.h
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.