diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.h')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.h b/src/shader_recompiler/backend/glsl/emit_context.h index 423fc6104..48786a2c7 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.h +++ b/src/shader_recompiler/backend/glsl/emit_context.h | |||
| @@ -119,6 +119,16 @@ public: | |||
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | template <typename... Args> | 121 | template <typename... Args> |
| 122 | void AddPrecF32(const char* format_str, IR::Inst& inst, Args&&... args) { | ||
| 123 | Add<GlslVarType::PrecF32>(format_str, inst, args...); | ||
| 124 | } | ||
| 125 | |||
| 126 | template <typename... Args> | ||
| 127 | void AddPrecF64(const char* format_str, IR::Inst& inst, Args&&... args) { | ||
| 128 | Add<GlslVarType::PrecF64>(format_str, inst, args...); | ||
| 129 | } | ||
| 130 | |||
| 131 | template <typename... Args> | ||
| 122 | void Add(const char* format_str, Args&&... args) { | 132 | void Add(const char* format_str, Args&&... args) { |
| 123 | code += fmt::format(format_str, std::forward<Args>(args)...); | 133 | code += fmt::format(format_str, std::forward<Args>(args)...); |
| 124 | // TODO: Remove this | 134 | // TODO: Remove this |