summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/Device.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2021-12-29 21:59:13 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-01 15:09:21 +0100
commitfe36edf6ae4fa5d003ee60ce4d2fb755c59bec48 (patch)
tree5553ca9dfa5e545bc65d2bad1c2501b59ac7b9d5 /Userland/Libraries/LibSoftGPU/Device.h
parent4b40d2cc07ee1b4b1ddf3d6025131e935962f48c (diff)
downloadserenity-fe36edf6ae4fa5d003ee60ce4d2fb755c59bec48.zip
LibSoftGPU: Put all constexpr config options into Config.h
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Device.h')
-rw-r--r--Userland/Libraries/LibSoftGPU/Device.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.h b/Userland/Libraries/LibSoftGPU/Device.h
index 2456a2d89d..9fdd2803ee 100644
--- a/Userland/Libraries/LibSoftGPU/Device.h
+++ b/Userland/Libraries/LibSoftGPU/Device.h
@@ -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;
};
}