diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/var_alloc.h')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/var_alloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/var_alloc.h b/src/shader_recompiler/backend/glsl/var_alloc.h index 29d78a571..574960b1a 100644 --- a/src/shader_recompiler/backend/glsl/var_alloc.h +++ b/src/shader_recompiler/backend/glsl/var_alloc.h | |||
| @@ -62,9 +62,15 @@ public: | |||
| 62 | bool uses_temp{}; | 62 | bool uses_temp{}; |
| 63 | }; | 63 | }; |
| 64 | 64 | ||
| 65 | /// Used for explicit usages of variables, may revert to temporaries | ||
| 65 | std::string Define(IR::Inst& inst, GlslVarType type); | 66 | std::string Define(IR::Inst& inst, GlslVarType type); |
| 66 | std::string Define(IR::Inst& inst, IR::Type type); | 67 | std::string Define(IR::Inst& inst, IR::Type type); |
| 67 | 68 | ||
| 69 | /// Used to assign variables used by the IR. May return a blank string if | ||
| 70 | /// the instruction's result is unused in the IR. | ||
| 71 | std::string AddDefine(IR::Inst& inst, GlslVarType type); | ||
| 72 | std::string PhiDefine(IR::Inst& inst, IR::Type type); | ||
| 73 | |||
| 68 | std::string Consume(const IR::Value& value); | 74 | std::string Consume(const IR::Value& value); |
| 69 | std::string ConsumeInst(IR::Inst& inst); | 75 | std::string ConsumeInst(IR::Inst& inst); |
| 70 | 76 | ||