diff options
author | FengChen <vonchenplus@gmail.com> | 2022-09-01 16:05:11 +0200 |
---|---|---|
committer | FengChen <vonchenplus@gmail.com> | 2022-09-20 05:55:43 +0200 |
commit | 9a95c7fa14bdfc14aacea92896c8ae8533918fe8 (patch) | |
tree | 3beb2289136a59134195d35e37d4b56b294a3081 /src/shader_recompiler/backend/glsl/glsl_emit_context.cpp | |
parent | Merge pull request #8841 from zhaobot/tx-update-20220901035349 (diff) | |
download | yuzu-9a95c7fa14bdfc14aacea92896c8ae8533918fe8.tar yuzu-9a95c7fa14bdfc14aacea92896c8ae8533918fe8.tar.gz yuzu-9a95c7fa14bdfc14aacea92896c8ae8533918fe8.tar.bz2 yuzu-9a95c7fa14bdfc14aacea92896c8ae8533918fe8.tar.lz yuzu-9a95c7fa14bdfc14aacea92896c8ae8533918fe8.tar.xz yuzu-9a95c7fa14bdfc14aacea92896c8ae8533918fe8.tar.zst yuzu-9a95c7fa14bdfc14aacea92896c8ae8533918fe8.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/glsl_emit_context.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/glsl_emit_context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp b/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp index c767a9dc3..5d01ec0cd 100644 --- a/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp @@ -358,6 +358,9 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile if (info.uses_rescaling_uniform) { header += "layout(location=0) uniform vec4 scaling;"; } + if (info.uses_render_area) { + header += "layout(location=1) uniform vec4 render_area;"; + } DefineConstantBuffers(bindings); DefineConstantBufferIndirect(); DefineStorageBuffers(bindings); |