Ubershader: Add lighting shadergen override

This commit is contained in:
wheremyfoodat 2024-07-20 03:40:50 +03:00
parent 69daed6ace
commit 69c79a7f6c
6 changed files with 34 additions and 2 deletions

View file

@ -20,6 +20,7 @@ enum class RendererType : s8 {
Software = 3,
};
struct EmulatorConfig;
class GPU;
struct SDL_Window;
@ -46,6 +47,8 @@ class Renderer {
u32 outputWindowWidth = 400;
u32 outputWindowHeight = 240 * 2;
EmulatorConfig* emulatorConfig = nullptr;
public:
Renderer(GPU& gpu, const std::array<u32, regNum>& internalRegs, const std::array<u32, extRegNum>& externalRegs);
virtual ~Renderer();
@ -101,4 +104,6 @@ class Renderer {
outputWindowWidth = width;
outputWindowHeight = height;
}
void setConfig(EmulatorConfig* config) { emulatorConfig = config; }
};