diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/reg_alloc.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/reg_alloc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/reg_alloc.cpp b/src/shader_recompiler/backend/glsl/reg_alloc.cpp index 9f529c358..8db1391fd 100644 --- a/src/shader_recompiler/backend/glsl/reg_alloc.cpp +++ b/src/shader_recompiler/backend/glsl/reg_alloc.cpp | |||
| @@ -61,6 +61,12 @@ std::string MakeImm(const IR::Value& value) { | |||
| 61 | } | 61 | } |
| 62 | } // Anonymous namespace | 62 | } // Anonymous namespace |
| 63 | 63 | ||
| 64 | std::string RegAlloc::Define(IR::Inst& inst) { | ||
| 65 | const Id id{Alloc()}; | ||
| 66 | inst.SetDefinition<Id>(id); | ||
| 67 | return Representation(id); | ||
| 68 | } | ||
| 69 | |||
| 64 | std::string RegAlloc::Define(IR::Inst& inst, Type type) { | 70 | std::string RegAlloc::Define(IR::Inst& inst, Type type) { |
| 65 | const Id id{Alloc()}; | 71 | const Id id{Alloc()}; |
| 66 | const auto type_str{GetType(type, id.index)}; | 72 | const auto type_str{GetType(type, id.index)}; |