2021-12-29 21:59:13 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-12-30 01:04:55 +01:00
|
|
|
#define INCREASE_STATISTICS_COUNTER(stat, n) \
|
|
|
|
do { \
|
|
|
|
if constexpr (ENABLE_STATISTICS_OVERLAY) \
|
|
|
|
stat += (n); \
|
|
|
|
} while (0)
|
|
|
|
|
2021-12-29 21:59:13 +01:00
|
|
|
namespace SoftGPU {
|
|
|
|
|
2021-12-30 01:04:55 +01:00
|
|
|
static constexpr bool ENABLE_STATISTICS_OVERLAY = false;
|
2022-01-15 21:10:22 +01:00
|
|
|
static constexpr int NUM_SAMPLERS = 2;
|
2022-01-08 14:30:56 -07:00
|
|
|
static constexpr int MILLISECONDS_PER_STATISTICS_PERIOD = 500;
|
2022-01-07 22:32:32 +11:00
|
|
|
static constexpr int NUM_LIGHTS = 8;
|
2021-12-29 21:59:13 +01:00
|
|
|
|
|
|
|
// See: https://www.khronos.org/opengl/wiki/Common_Mistakes#Texture_edge_color_problem
|
|
|
|
// FIXME: make this dynamically configurable through ConfigServer
|
|
|
|
static constexpr bool CLAMP_DEPRECATED_BEHAVIOR = false;
|
|
|
|
|
|
|
|
}
|