show progress on shader compilation

This commit is contained in:
RSDuck
2024-05-13 17:12:34 +02:00
parent cb83956914
commit eb1eff1622
5 changed files with 151 additions and 38 deletions

View File

@ -58,6 +58,9 @@ public:
void Blit(const GPU& gpu) override;
void Stop(const GPU& gpu) override;
bool NeedsShaderCompile() { return ShaderStepIdx != 33; }
void ShaderCompileStep(int& current, int& count) override;
private:
ComputeRenderer(GLCompositor&& compositor);
@ -223,6 +226,8 @@ private:
GLCompositor CurGLCompositor;
int ShaderStepIdx = 0;
void DeleteShaders();
void SetupAttrs(SpanSetupY* span, Polygon* poly, int from, int to);