Config.h 779 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibGPU/Config.h>
  8. #define INCREASE_STATISTICS_COUNTER(stat, n) \
  9. do { \
  10. if constexpr (ENABLE_STATISTICS_OVERLAY) \
  11. stat += (n); \
  12. } while (0)
  13. namespace SoftGPU {
  14. static constexpr bool ENABLE_STATISTICS_OVERLAY = false;
  15. static constexpr int MILLISECONDS_PER_STATISTICS_PERIOD = 500;
  16. static constexpr int NUM_LIGHTS = 8;
  17. // See: https://www.khronos.org/opengl/wiki/Common_Mistakes#Texture_edge_color_problem
  18. // FIXME: make this dynamically configurable through ConfigServer
  19. static constexpr bool CLAMP_DEPRECATED_BEHAVIOR = false;
  20. }