mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibGPU+LibSoftGPU: Move RasterizerOptions into LibGPU
This commit is contained in:
parent
5d2740217f
commit
1f3642ed48
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