microprofile.h 885 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. // Customized Citra settings.
  6. // This file wraps the MicroProfile header so that these are consistent everywhere.
  7. #define MICROPROFILE_WEBSERVER 0
  8. #define MICROPROFILE_GPU_TIMERS 0 // TODO: Implement timer queries when we upgrade to OpenGL 3.3
  9. #define MICROPROFILE_CONTEXT_SWITCH_TRACE 0
  10. #define MICROPROFILE_PER_THREAD_BUFFER_SIZE (2048<<12) // 8 MB
  11. #ifdef _WIN32
  12. // This isn't defined by the standard library in MSVC2015
  13. typedef void* HANDLE;
  14. #endif
  15. #include <microprofile.h>
  16. #define MP_RGB(r, g, b) ((r) << 16 | (g) << 8 | (b) << 0)
  17. // On OS X, some Mach header included by MicroProfile defines these as macros, conflicting with
  18. // identifiers we use.
  19. #ifdef PAGE_SIZE
  20. #undef PAGE_SIZE
  21. #endif
  22. #ifdef PAGE_MASK
  23. #undef PAGE_MASK
  24. #endif