D3DX10_ERR 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

typedef enum D3DX10_ERR { 
  D3DX10_ERR_CANNOT_MODIFY_INDEX_BUFFER  = MAKE_DDHRESULT(2900),
  D3DX10_ERR_INVALID_MESH                = MAKE_DDHRESULT(2901),
  D3DX10_ERR_CANNOT_ATTR_SORT            = MAKE_DDHRESULT(2902),
  D3DX10_ERR_SKINNING_NOT_SUPPORTED      = MAKE_DDHRESULT(2903),
  D3DX10_ERR_TOO_MANY_INFLUENCES         = MAKE_DDHRESULT(2904),
  D3DX10_ERR_INVALID_DATA                = MAKE_DDHRESULT(2905),
  D3DX10_ERR_LOADED_MESH_HAS_NO_DATA     = MAKE_DDHRESULT(2906),
  D3DX10_ERR_DUPLICATE_NAMED_FRAGMENT    = MAKE_DDHRESULT(2907),
  D3DX10_ERR_CANNOT_REMOVE_LAST_ITEM     = MAKE_DDHRESULT(2908)
} D3DX10_ERR, *LPD3DX10_ERR;

Constants

D3DX10_ERR_CANNOT_MODIFY_INDEX_BUFFER

The index buffer cannot be modified.

D3DX10_ERR_INVALID_MESH

The mesh is invalid.

D3DX10_ERR_CANNOT_ATTR_SORT

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

D3DX10_ERR_SKINNING_NOT_SUPPORTED

Skinning is not supported.

D3DX10_ERR_TOO_MANY_INFLUENCES

Too many influences specified.

D3DX10_ERR_INVALID_DATA

The data is invalid.

D3DX10_ERR_LOADED_MESH_HAS_NO_DATA

The mesh has no data.

D3DX10_ERR_DUPLICATE_NAMED_FRAGMENT

A fragment with that name already exists.

D3DX10_ERR_CANNOT_REMOVE_LAST_ITEM

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

Requirement Value
Header
D3DX10.h

See also

D3DX Enumerations