summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_context.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-28 02:31:03 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:36 +0200
commita752ec88d06c6bcfb13605447a164c6b6915ed6e (patch)
tree5e0bb8f30120199ed4955d402ff0b554db257e2c /src/shader_recompiler/backend/glsl/emit_context.cpp
parentglsl: Fix non-immediate buffer access (diff)
downloadyuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.tar
yuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.tar.gz
yuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.tar.bz2
yuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.tar.lz
yuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.tar.xz
yuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.tar.zst
yuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp
index 2bf0def82..0ddc0443b 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_context.cpp
@@ -22,9 +22,10 @@ std::string_view InterpDecorator(Interpolation interp) {
}
} // namespace
-EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_)
- : info{program.info}, profile{profile_} {
- std::string header = "#version 450\n";
+EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_,
+ const RuntimeInfo& runtime_info_)
+ : info{program.info}, profile{profile_}, runtime_info{runtime_info_} {
+ std::string header = "";
SetupExtensions(header);
stage = program.stage;
switch (program.stage) {