mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +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
18
Userland/Libraries/LibSoftGPU/Config.h
Normal file
18
Userland/Libraries/LibSoftGPU/Config.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace SoftGPU {
|
||||
|
||||
static constexpr int RASTERIZER_BLOCK_SIZE = 8;
|
||||
static constexpr int NUM_SAMPLERS = 32;
|
||||
|
||||
// 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;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue