GL: Use StreamBuffer for shadergen UBOs (#793)

* GL: Use StreamBuffer for shadergen UBOs

* Clean up UBO sizes
This commit is contained in:
wheremyfoodat
2025-07-24 23:25:34 +03:00
committed by GitHub
parent 3ac5f1b0c6
commit 0815707613
2 changed files with 21 additions and 20 deletions

View File

@@ -92,11 +92,12 @@ class RendererGL final : public Renderer {
// The "default" vertex shader to use when using specialized shaders but not PICA vertex shader -> GLSL recompilation
// We can compile this once and then link it with all other generated fragment shaders
OpenGL::Shader defaultShadergenVs;
GLuint shadergenFragmentUBO;
// UBO for uploading the PICA uniforms when using hw shaders
GLuint hwShaderUniformUBO;
using StreamBuffer = OpenGLStreamBuffer;
std::unique_ptr<StreamBuffer> shadergenFragmentUBO;
// UBO for uploading the PICA uniforms when using hw shaders
std::unique_ptr<StreamBuffer> hwShaderUniformUBO;
std::unique_ptr<StreamBuffer> hwVertexBuffer;
std::unique_ptr<StreamBuffer> hwIndexBuffer;