mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:27:35 +00:00
LibAccelGfx: Compile all needed shaders during Painter construction
Instead of recompiling shaders on each paint command call we can compile them once.
This commit is contained in:
parent
1e85bf221d
commit
b7f8d7e357
5 changed files with 139 additions and 58 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <AK/Vector.h>
|
||||
#include <LibAccelGfx/Canvas.h>
|
||||
#include <LibAccelGfx/Forward.h>
|
||||
#include <LibAccelGfx/Program.h>
|
||||
#include <LibGfx/AffineTransform.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
|
@ -53,6 +54,8 @@ private:
|
|||
[[nodiscard]] Gfx::FloatRect to_clip_space(Gfx::FloatRect const& screen_rect) const;
|
||||
|
||||
Vector<State, 1> m_state_stack;
|
||||
|
||||
Program m_rectangle_program;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue