1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibSoftGPU: Put all constexpr config options into Config.h

This commit is contained in:
Stephan Unverwerth 2021-12-29 21:59:13 +01:00 committed by Andreas Kling
parent 4b40d2cc07
commit fe36edf6ae
4 changed files with 23 additions and 10 deletions

View file

@ -15,6 +15,7 @@
#include <LibGfx/Rect.h>
#include <LibGfx/Vector4.h>
#include <LibSoftGPU/Clipper.h>
#include <LibSoftGPU/Config.h>
#include <LibSoftGPU/DepthBuffer.h>
#include <LibSoftGPU/DeviceInfo.h>
#include <LibSoftGPU/Enums.h>
@ -66,8 +67,6 @@ struct RasterizerOptions {
Array<TexCoordGenerationConfig, 4> texcoord_generation_config {};
};
inline static constexpr size_t const num_samplers = 32;
class Device final {
public:
Device(const Gfx::IntSize& min_size);
@ -101,7 +100,7 @@ private:
Vector<Triangle> m_triangle_list;
Vector<Triangle> m_processed_triangles;
Vector<Vertex> m_clipped_vertices;
Array<Sampler, num_samplers> m_samplers;
Array<Sampler, NUM_SAMPLERS> m_samplers;
};
}