mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
Shadergen: Minimize shader compilation time by caching the default VS
This commit is contained in:
parent
ac55c3e324
commit
5c1e2912a3
5 changed files with 57 additions and 37 deletions
|
@ -66,6 +66,9 @@ class RendererGL final : public Renderer {
|
|||
OpenGL::Texture lightLUTTexture;
|
||||
OpenGL::Framebuffer screenFramebuffer;
|
||||
OpenGL::Texture blankTexture;
|
||||
// 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;
|
||||
|
||||
// Cached recompiled fragment shader
|
||||
struct CachedProgram {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue