summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_context.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-26 06:16:20 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:36 +0200
commit3d086e6130a2c5f0546ccef3b234c65ef2f0c99b (patch)
treeeaddf938c32f9a077ff671db4e9ebe9634304033 /src/shader_recompiler/backend/glsl/emit_context.h
parentglsl: Track S32 atomics (diff)
downloadyuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar
yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.gz
yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.bz2
yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.lz
yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.xz
yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.zst
yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.h')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.h b/src/shader_recompiler/backend/glsl/emit_context.h
index 7f8857fa7..087eaff6a 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.h
+++ b/src/shader_recompiler/backend/glsl/emit_context.h
@@ -89,6 +89,11 @@ public:
}
template <typename... Args>
+ void AddF32x4(const char* format_str, IR::Inst& inst, Args&&... args) {
+ Add<Type::F32x4>(format_str, inst, args...);
+ }
+
+ template <typename... Args>
void Add(const char* format_str, Args&&... args) {
code += fmt::format(format_str, std::forward<Args>(args)...);
// TODO: Remove this
@@ -100,6 +105,10 @@ public:
const Info& info;
const Profile& profile;
+ Stage stage{};
+ std::string_view stage_name = "invalid";
+ std::string_view attrib_name = "invalid";
+
private:
void SetupExtensions(std::string& header);
void DefineConstantBuffers();