pchfx.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //--------------------------------------------------------------------------------------
  2. // File: pchfx.h
  3. //
  4. // Direct3D 11 shader effects precompiled header
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  9. // PARTICULAR PURPOSE.
  10. //
  11. // Copyright (c) Microsoft Corporation. All rights reserved.
  12. //
  13. // http://go.microsoft.com/fwlink/p/?LinkId=271568
  14. //--------------------------------------------------------------------------------------
  15. #pragma once
  16. #pragma warning(disable : 4102 4127 4201 4505 4616 4706 6326)
  17. #ifndef NOMINMAX
  18. #define NOMINMAX
  19. #endif
  20. #include <algorithm>
  21. #if defined(_XBOX_ONE) && defined(_TITLE)
  22. #include <d3d11_x.h>
  23. #include <D3DCompiler_x.h>
  24. #define DCOMMON_H_INCLUDED
  25. #define NO_D3D11_DEBUG_NAME
  26. #elif (_WIN32_WINNT >= 0x0602) || defined(_WIN7_PLATFORM_UPDATE)
  27. #include <d3d11_1.h>
  28. #include <D3DCompiler.h>
  29. #else
  30. #include <d3d11.h>
  31. #include <D3DCompiler.h>
  32. #endif
  33. #ifndef _WIN32_WINNT_WIN8
  34. #define _WIN32_WINNT_WIN8 0x0602
  35. #endif
  36. #undef DEFINE_GUID
  37. #include "INITGUID.h"
  38. #include "d3dx11effect.h"
  39. #define UNUSED -1
  40. //////////////////////////////////////////////////////////////////////////
  41. #define offsetof_fx( a, b ) (uint32_t)offsetof( a, b )
  42. #include "d3dxGlobal.h"
  43. #include <stddef.h>
  44. #include <stdlib.h>
  45. #include "Effect.h"
  46. #include "EffectStateBase11.h"
  47. #include "EffectLoad.h"