Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.8 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: d3dx11.h
  6. // Content: D3DX11 utility library
  7. //
  8. //////////////////////////////////////////////////////////////////////////////
  9. #ifdef __D3DX11_INTERNAL__
  10. #error Incorrect D3DX11 header used
  11. #endif
  12. #ifndef __D3DX11_H__
  13. #define __D3DX11_H__
  14. // Defines
  15. #include <limits.h>
  16. #include <float.h>
  17. #ifdef ALLOW_THROWING_NEW
  18. #include <new>
  19. #endif
  20. #define D3DX11_DEFAULT ((UINT) -1)
  21. #define D3DX11_FROM_FILE ((UINT) -3)
  22. #define DXGI_FORMAT_FROM_FILE ((DXGI_FORMAT) -3)
  23. #ifndef D3DX11INLINE
  24. #ifdef _MSC_VER
  25. #if (_MSC_VER >= 1200)
  26. #define D3DX11INLINE __forceinline
  27. #else
  28. #define D3DX11INLINE __inline
  29. #endif
  30. #else
  31. #ifdef __cplusplus
  32. #define D3DX11INLINE inline
  33. #else
  34. #define D3DX11INLINE
  35. #endif
  36. #endif
  37. #endif
  38. // Includes
  39. #include "d3d11.h"
  40. #include "d3dx11.h"
  41. #include "d3dx11core.h"
  42. #include "d3dx11tex.h"
  43. #include "d3dx11async.h"
  44. // Errors
  45. #define _FACDD 0x876
  46. #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
  47. enum _D3DX11_ERR {
  48. D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER = MAKE_DDHRESULT(2900),
  49. D3DX11_ERR_INVALID_MESH = MAKE_DDHRESULT(2901),
  50. D3DX11_ERR_CANNOT_ATTR_SORT = MAKE_DDHRESULT(2902),
  51. D3DX11_ERR_SKINNING_NOT_SUPPORTED = MAKE_DDHRESULT(2903),
  52. D3DX11_ERR_TOO_MANY_INFLUENCES = MAKE_DDHRESULT(2904),
  53. D3DX11_ERR_INVALID_DATA = MAKE_DDHRESULT(2905),
  54. D3DX11_ERR_LOADED_MESH_HAS_NO_DATA = MAKE_DDHRESULT(2906),
  55. D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT = MAKE_DDHRESULT(2907),
  56. D3DX11_ERR_CANNOT_REMOVE_LAST_ITEM = MAKE_DDHRESULT(2908),
  57. };
  58. #endif //__D3DX11_H__