glsl: Fix "reg" allocing

based on glasm with some tweaks
This commit is contained in:
ameerj 2021-05-20 23:38:38 -04:00
parent eaff1030de
commit 64337f004d
10 changed files with 938 additions and 898 deletions

View file

@ -45,18 +45,14 @@ public:
code += '\n';
}
std::string AllocVar() {
return fmt::format("var_{}", var_num++);
}
std::string code;
RegAlloc reg_alloc;
const Info& info;
const Profile& profile;
u64 var_num{};
private:
void DefineConstantBuffers();
void DefineStorageBuffers();
};
} // namespace Shader::Backend::GLSL