diff options
| author | 2021-05-18 21:04:09 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:32 -0400 | |
| commit | 8b7d5912d61d56f65fb7e3a03bba544a4c40bfa6 (patch) | |
| tree | ede1d0e1d3c828b50f4af190f64adf73a30a62e7 /src/video_core | |
| parent | glasm: Implement textureGather instructions (diff) | |
| download | yuzu-8b7d5912d61d56f65fb7e3a03bba544a4c40bfa6.tar.gz yuzu-8b7d5912d61d56f65fb7e3a03bba544a4c40bfa6.tar.xz yuzu-8b7d5912d61d56f65fb7e3a03bba544a4c40bfa6.zip | |
glasm: Support textures used in more than one stage
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp index c10ea2f60..b84b36b9d 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp | |||
| @@ -302,7 +302,7 @@ std::unique_ptr<GraphicsProgram> ShaderCache::CreateGraphicsProgram( | |||
| 302 | const size_t stage_index{index - 1}; | 302 | const size_t stage_index{index - 1}; |
| 303 | infos[stage_index] = &program.info; | 303 | infos[stage_index] = &program.info; |
| 304 | if (device.UseAssemblyShaders()) { | 304 | if (device.UseAssemblyShaders()) { |
| 305 | const std::string code{EmitGLASM(profile, program)}; | 305 | const std::string code{EmitGLASM(profile, program, binding)}; |
| 306 | assembly_programs[stage_index] = CompileProgram(code, AssemblyStage(stage_index)); | 306 | assembly_programs[stage_index] = CompileProgram(code, AssemblyStage(stage_index)); |
| 307 | } else { | 307 | } else { |
| 308 | const std::vector<u32> code{EmitSPIRV(profile, program, binding)}; | 308 | const std::vector<u32> code{EmitSPIRV(profile, program, binding)}; |