summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/reg_alloc.h
diff options
context:
space:
mode:
authorGravatar ameerj2021-05-26 21:18:17 -0400
committerGravatar ameerj2021-07-22 21:51:36 -0400
commitd171083d53e106c8c5131522fdc81d51360c562d (patch)
tree282cbd1306616e969166e9ddc926bc51c1c15803 /src/shader_recompiler/backend/glsl/reg_alloc.h
parentglsl: Implement some attribute getters and setters (diff)
downloadyuzu-d171083d53e106c8c5131522fdc81d51360c562d.tar.gz
yuzu-d171083d53e106c8c5131522fdc81d51360c562d.tar.xz
yuzu-d171083d53e106c8c5131522fdc81d51360c562d.zip
glsl: textures wip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/reg_alloc.h')
-rw-r--r--src/shader_recompiler/backend/glsl/reg_alloc.h11
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
69private: 65private:
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