2021-12-29 20:59:13 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-03-27 13:20:51 +00:00
|
|
|
#include <LibGPU/Config.h>
|
|
|
|
|
2021-12-30 00:04:55 +00:00
|
|
|
#define INCREASE_STATISTICS_COUNTER(stat, n) \
|
|
|
|
do { \
|
|
|
|
if constexpr (ENABLE_STATISTICS_OVERLAY) \
|
|
|
|
stat += (n); \
|
|
|
|
} while (0)
|
|
|
|
|
2021-12-29 20:59:13 +00:00
|
|
|
namespace SoftGPU {
|
|
|
|
|
2021-12-30 00:04:55 +00:00
|
|
|
static constexpr bool ENABLE_STATISTICS_OVERLAY = false;
|
2022-01-08 21:30:56 +00:00
|
|
|
static constexpr int MILLISECONDS_PER_STATISTICS_PERIOD = 500;
|
2022-01-07 11:32:32 +00:00
|
|
|
static constexpr int NUM_LIGHTS = 8;
|
2022-05-06 09:40:55 +00:00
|
|
|
static constexpr int MAX_CLIP_PLANES = 6;
|
2022-04-29 13:11:25 +00:00
|
|
|
static constexpr int SUBPIXEL_BITS = 6;
|
2021-12-29 20:59:13 +00: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;
|
|
|
|
|
|
|
|
}
|