mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 22:42:18 +00:00
LibSoftGPU: Put all constexpr config options into Config.h
This commit is contained in:
parent
4b40d2cc07
commit
fe36edf6ae
Notes:
sideshowbarker
2024-07-17 21:50:29 +09:00
Author: https://github.com/sunverwerth
Commit: fe36edf6ae
Pull-request: https://github.com/SerenityOS/serenity/pull/11495
Reviewed-by: https://github.com/gmta
4 changed files with 23 additions and 10 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue