mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +00:00
LibSoftGPU: Put all constexpr config options into Config.h
This commit is contained in:
parent
4b40d2cc07
commit
fe36edf6ae
4 changed files with 23 additions and 10 deletions
|
@ -4,16 +4,13 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibSoftGPU/Config.h>
|
||||
#include <LibSoftGPU/Image.h>
|
||||
#include <LibSoftGPU/Sampler.h>
|
||||
#include <math.h>
|
||||
|
||||
namespace SoftGPU {
|
||||
|
||||
// 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;
|
||||
|
||||
static constexpr float fracf(float value)
|
||||
{
|
||||
return value - floorf(value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue