diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/reg_alloc.h')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/reg_alloc.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/shader_recompiler/backend/glsl/reg_alloc.h b/src/shader_recompiler/backend/glsl/reg_alloc.h index df067d3ad..419d0bde0 100644 --- a/src/shader_recompiler/backend/glsl/reg_alloc.h +++ b/src/shader_recompiler/backend/glsl/reg_alloc.h | |||
| @@ -59,20 +59,15 @@ public: | |||
| 59 | std::string Define(IR::Inst& inst, IR::Type type); | 59 | std::string Define(IR::Inst& inst, IR::Type type); |
| 60 | 60 | ||
| 61 | std::string Consume(const IR::Value& value); | 61 | std::string Consume(const IR::Value& value); |
| 62 | 62 | std::string GetGlslType(Type type); | |
| 63 | /// Returns true if the instruction is expected to be aliased to another | 63 | std::string GetGlslType(IR::Type type); |
| 64 | static bool IsAliased(const IR::Inst& inst); | ||
| 65 | |||
| 66 | /// Returns the underlying value out of an alias sequence | ||
| 67 | static IR::Inst& AliasInst(IR::Inst& inst); | ||
| 68 | 64 | ||
| 69 | private: | 65 | private: |
| 70 | static constexpr size_t NUM_REGS = 4096; | 66 | static constexpr size_t NUM_REGS = 4096; |
| 71 | static constexpr size_t NUM_ELEMENTS = 4; | 67 | static constexpr size_t NUM_ELEMENTS = 4; |
| 72 | 68 | ||
| 73 | std::string Consume(IR::Inst& inst); | 69 | std::string Consume(IR::Inst& inst); |
| 74 | std::string GetType(Type type, u32 index); | 70 | Type RegType(IR::Type type); |
| 75 | |||
| 76 | Id Alloc(); | 71 | Id Alloc(); |
| 77 | void Free(Id id); | 72 | void Free(Id id); |
| 78 | 73 | ||