1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LibSoftGPU: Make alpha testing a static function

There is no need to access the Device's members for alpha testing; pass
in the required alpha function and reference value.
This commit is contained in:
Jelle Raaijmakers 2022-10-09 03:00:22 +02:00 committed by Linus Groh
parent bdb2be8f9e
commit 681695a07a
2 changed files with 34 additions and 35 deletions

View file

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