diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-04 01:53:00 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:30 +0200 |
commit | bed090807afd3364ed6ef18a031a0ffd95a1b89b (patch) | |
tree | 50035e78e75e7237e4cafcf181eb0b3a2f172912 /src/video_core/renderer_opengl | |
parent | shader: Optimize NVN Fallthrough (diff) | |
download | yuzu-bed090807afd3364ed6ef18a031a0ffd95a1b89b.tar yuzu-bed090807afd3364ed6ef18a031a0ffd95a1b89b.tar.gz yuzu-bed090807afd3364ed6ef18a031a0ffd95a1b89b.tar.bz2 yuzu-bed090807afd3364ed6ef18a031a0ffd95a1b89b.tar.lz yuzu-bed090807afd3364ed6ef18a031a0ffd95a1b89b.tar.xz yuzu-bed090807afd3364ed6ef18a031a0ffd95a1b89b.tar.zst yuzu-bed090807afd3364ed6ef18a031a0ffd95a1b89b.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp index c9ca1f005..6585817bc 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp @@ -254,7 +254,7 @@ std::unique_ptr<GraphicsProgram> ShaderCache::CreateGraphicsProgram( OGLProgram gl_program; gl_program.handle = glCreateProgram(); - Shader::Backend::SPIRV::Bindings binding; + Shader::Backend::Bindings binding; for (size_t index = 0; index < Maxwell::MaxShaderProgram; ++index) { if (key.unique_hashes[index] == 0) { continue; @@ -297,8 +297,7 @@ std::unique_ptr<ComputeProgram> ShaderCache::CreateComputeProgram(ShaderPools& p Shader::Maxwell::Flow::CFG cfg{env, pools.flow_block, env.StartAddress()}; Shader::IR::Program program{TranslateProgram(pools.inst, pools.block, env, cfg)}; - Shader::Backend::SPIRV::Bindings binding; - const std::vector<u32> code{EmitSPIRV(profile, program, binding)}; + const std::vector<u32> code{EmitSPIRV(profile, program)}; OGLProgram gl_program; gl_program.handle = glCreateProgram(); AddShader(GL_COMPUTE_SHADER, gl_program.handle, code); |