D3DX11_ERR enumeration
Note
The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
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 D3DX11_ERR {
D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER = MAKE_DDHRESULT(2900),
D3DX11_ERR_INVALID_MESH = MAKE_DDHRESULT(2901),
D3DX11_ERR_CANNOT_ATTR_SORT = MAKE_DDHRESULT(2902),
D3DX11_ERR_SKINNING_NOT_SUPPORTED = MAKE_DDHRESULT(2903),
D3DX11_ERR_TOO_MANY_INFLUENCES = MAKE_DDHRESULT(2904),
D3DX11_ERR_INVALID_DATA = MAKE_DDHRESULT(2905),
D3DX11_ERR_LOADED_MESH_HAS_NO_DATA = MAKE_DDHRESULT(2906),
D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT = MAKE_DDHRESULT(2907),
D3DX11_ERR_CANNOT_REMOVE_LAST_ITEM = MAKE_DDHRESULT(2908)
} D3DX11_ERR, *LPD3DX11_ERR;
Constants
-
D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER
-
The index buffer cannot be modified.
-
D3DX11_ERR_INVALID_MESH
-
The mesh is invalid.
-
D3DX11_ERR_CANNOT_ATTR_SORT
-
Attribute sort (D3DXMESHOPT_ATTRSORT) is not supported as an optimization technique.
-
D3DX11_ERR_SKINNING_NOT_SUPPORTED
-
Skinning is not supported.
-
D3DX11_ERR_TOO_MANY_INFLUENCES
-
Too many influences specified.
-
D3DX11_ERR_INVALID_DATA
-
The data is invalid.
-
D3DX11_ERR_LOADED_MESH_HAS_NO_DATA
-
The mesh has no data.
-
D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT
-
A fragment with that name already exists.
-
D3DX11_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 |
|