1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

LibSoftGPU: Update coverage bits after alpha testing

Also skip the test for the `::Always` alpha test function in the hot
loop. This test function is very unlikely to be set, so leave that up
to `::test_alpha()`.
This commit is contained in:
Jelle Raaijmakers 2022-05-15 00:02:30 +02:00 committed by Andreas Kling
parent 1a338844fa
commit 421a80bf43
2 changed files with 20 additions and 15 deletions

View file

@ -93,7 +93,7 @@ private:
void rasterize_triangle(Triangle&);
void setup_blend_factors();
void shade_fragments(PixelQuad&);
bool test_alpha(PixelQuad&);
void test_alpha(PixelQuad&);
RefPtr<FrameBuffer<GPU::ColorType, GPU::DepthType, GPU::StencilType>> m_frame_buffer {};
GPU::RasterizerOptions m_options;