diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-25 00:35:37 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | 3d9ecbe99844c44074c26f2db4db376059f50534 (patch) | |
tree | 143a67c8da0e7df7568f79196339f5423931c757 /src/shader_recompiler/backend/glsl/emit_context.h | |
parent | glsl: Implement FCMP (diff) | |
download | yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.tar yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.tar.gz yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.tar.bz2 yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.tar.lz yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.tar.xz yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.tar.zst yuzu-3d9ecbe99844c44074c26f2db4db376059f50534.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.h')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.h b/src/shader_recompiler/backend/glsl/emit_context.h index 9472f71b9..ca5657fe7 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.h +++ b/src/shader_recompiler/backend/glsl/emit_context.h @@ -31,13 +31,6 @@ class EmitContext { public: explicit EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_); - // template <typename... Args> - // void Add(const char* format_str, IR::Inst& inst, Args&&... args) { - // code += fmt::format(format_str, reg_alloc.Define(inst), std::forward<Args>(args)...); - // // TODO: Remove this - // code += '\n'; - // } - template <Type type, typename... Args> void Add(const char* format_str, IR::Inst& inst, Args&&... args) { code += fmt::format(format_str, reg_alloc.Define(inst, type), std::forward<Args>(args)...); @@ -106,6 +99,7 @@ private: void SetupExtensions(std::string& header); void DefineConstantBuffers(); void DefineStorageBuffers(); + void DefineHelperFunctions(); }; } // namespace Shader::Backend::GLSL |