diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-29 19:27:01 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:28 +0100 |
commit | f086c82e1f80cae088bb22de9092598dc51979da (patch) | |
tree | 8e055b4397c2dc9288a8fed65daf171488ecadc9 /src/shader_recompiler/backend/glsl/emit_context.cpp | |
parent | texture_cache: Fix blacklists on compute (diff) | |
download | yuzu-f086c82e1f80cae088bb22de9092598dc51979da.tar yuzu-f086c82e1f80cae088bb22de9092598dc51979da.tar.gz yuzu-f086c82e1f80cae088bb22de9092598dc51979da.tar.bz2 yuzu-f086c82e1f80cae088bb22de9092598dc51979da.tar.lz yuzu-f086c82e1f80cae088bb22de9092598dc51979da.tar.xz yuzu-f086c82e1f80cae088bb22de9092598dc51979da.tar.zst yuzu-f086c82e1f80cae088bb22de9092598dc51979da.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index 4e6f2c0fe..7c9ed9159 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp @@ -393,6 +393,9 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile DefineGenericOutput(index, program.invocations); } } + if (info.uses_rescaling_uniform) { + header += "layout(location=0) uniform float down_factor;"; + } DefineConstantBuffers(bindings); DefineStorageBuffers(bindings); SetupImages(bindings); |