mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibGPU+LibSoftGPU: Move RasterizerOptions into LibGPU
This commit is contained in:
parent
5d2740217f
commit
1f3642ed48
Notes:
sideshowbarker
2024-07-17 14:22:52 +09:00
Author: https://github.com/sunverwerth
Commit: 1f3642ed48
Pull-request: https://github.com/SerenityOS/serenity/pull/13294
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/creator1creeper1
Reviewed-by: https://github.com/gmta
3 changed files with 67 additions and 47 deletions
|
@ -589,7 +589,7 @@ GPU::DeviceInfo Device::info() const
|
|||
};
|
||||
}
|
||||
|
||||
static void generate_texture_coordinates(GPU::Vertex& vertex, RasterizerOptions const& options)
|
||||
static void generate_texture_coordinates(GPU::Vertex& vertex, GPU::RasterizerOptions const& options)
|
||||
{
|
||||
auto generate_coordinate = [&](size_t texcoord_index, size_t config_index) -> float {
|
||||
auto mode = options.texcoord_generation_config[texcoord_index][config_index].mode;
|
||||
|
@ -1190,7 +1190,7 @@ void Device::draw_statistics_overlay(Gfx::Bitmap& target)
|
|||
painter.draw_text(target.rect().translated(2, 2), debug_string, font, Gfx::TextAlignment::TopLeft, Gfx::Color::White);
|
||||
}
|
||||
|
||||
void Device::set_options(RasterizerOptions const& options)
|
||||
void Device::set_options(GPU::RasterizerOptions const& options)
|
||||
{
|
||||
m_options = options;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue