1 module directx.d3dx11;
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 //  Copyright (C) Microsoft Corporation.  All Rights Reserved.
5 //
6 //  File:       d3dx11.h
7 //  Content:    D3DX11 utility library
8 //
9 //////////////////////////////////////////////////////////////////////////////
10 
11 enum D3DX11_DEFAULT            = (cast(UINT) -1);
12 enum D3DX11_FROM_FILE          = (cast(UINT) -3);
13 enum DXGI_FORMAT_FROM_FILE     = (cast(DXGI_FORMAT) -3);
14 
15 // Includes
16 public import directx.d3d11;
17 public import directx.d3dx11;
18 public import directx.d3dx11core;
19 public import directx.d3dx11tex;
20 public import directx.d3dx11async;
21 
22 // Errors
23 enum _FACDD  = 0x876;
24 
25 HRESULT MAKE_DDHRESULT(T)(T code) {
26 	return MAKE_HRESULT(1, _FACDD, code);
27 }
28 
29 alias D3DX11_ERR = int;
30 enum : D3DX11_ERR
31 {
32     D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER       = MAKE_DDHRESULT(2900),
33     D3DX11_ERR_INVALID_MESH                     = MAKE_DDHRESULT(2901),
34     D3DX11_ERR_CANNOT_ATTR_SORT                 = MAKE_DDHRESULT(2902),
35     D3DX11_ERR_SKINNING_NOT_SUPPORTED           = MAKE_DDHRESULT(2903),
36     D3DX11_ERR_TOO_MANY_INFLUENCES              = MAKE_DDHRESULT(2904),
37     D3DX11_ERR_INVALID_DATA                     = MAKE_DDHRESULT(2905),
38     D3DX11_ERR_LOADED_MESH_HAS_NO_DATA          = MAKE_DDHRESULT(2906),
39     D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT         = MAKE_DDHRESULT(2907),
40     D3DX11_ERR_CANNOT_REMOVE_LAST_ITEM		    = MAKE_DDHRESULT(2908),
41 }