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

LibSoftGPU: Implement shader processor for SoftGPU ISA

This adds a shader processor that executes our ISA when a fragment
shader is currently bound to the device.
This commit is contained in:
Stephan Unverwerth 2022-09-17 17:52:34 +02:00 committed by Andrew Kaster
parent 1e548a84d6
commit b18bf702ea
5 changed files with 170 additions and 0 deletions

View file

@ -36,6 +36,7 @@
#include <LibSoftGPU/Config.h>
#include <LibSoftGPU/Sampler.h>
#include <LibSoftGPU/Shader.h>
#include <LibSoftGPU/ShaderProcessor.h>
#include <LibSoftGPU/Triangle.h>
namespace SoftGPU {
@ -120,6 +121,7 @@ private:
Array<GPU::StencilConfiguration, 2u> m_stencil_configuration;
Array<GPU::TextureUnitConfiguration, GPU::NUM_TEXTURE_UNITS> m_texture_unit_configuration;
RefPtr<Shader> m_current_fragment_shader;
ShaderProcessor m_shader_processor;
};
}