Config.h 731 B

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