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.

70 lines
1.7 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. #define D3DX11_DEFAULT ((UINT) -1)
  18. #define D3DX11_FROM_FILE ((UINT) -3)
  19. #define DXGI_FORMAT_FROM_FILE ((DXGI_FORMAT) -3)
  20. #ifndef D3DX11INLINE
  21. #ifdef _MSC_VER
  22. #if (_MSC_VER >= 1200)
  23. #define D3DX11INLINE __forceinline
  24. #else
  25. #define D3DX11INLINE __inline
  26. #endif
  27. #else
  28. #ifdef __cplusplus
  29. #define D3DX11INLINE inline
  30. #else
  31. #define D3DX11INLINE
  32. #endif
  33. #endif
  34. #endif
  35. // Includes
  36. #include "d3d11.h"
  37. #include "d3dx11.h"
  38. #include "d3dx11core.h"
  39. #include "d3dx11tex.h"
  40. #include "d3dx11async.h"
  41. // Errors
  42. #define _FACDD 0x876
  43. #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
  44. enum _D3DX11_ERR {
  45. D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER = MAKE_DDHRESULT(2900),
  46. D3DX11_ERR_INVALID_MESH = MAKE_DDHRESULT(2901),
  47. D3DX11_ERR_CANNOT_ATTR_SORT = MAKE_DDHRESULT(2902),
  48. D3DX11_ERR_SKINNING_NOT_SUPPORTED = MAKE_DDHRESULT(2903),
  49. D3DX11_ERR_TOO_MANY_INFLUENCES = MAKE_DDHRESULT(2904),
  50. D3DX11_ERR_INVALID_DATA = MAKE_DDHRESULT(2905),
  51. D3DX11_ERR_LOADED_MESH_HAS_NO_DATA = MAKE_DDHRESULT(2906),
  52. D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT = MAKE_DDHRESULT(2907),
  53. D3DX11_ERR_CANNOT_REMOVE_LAST_ITEM = MAKE_DDHRESULT(2908),
  54. };
  55. #endif //__D3DX11_H__