glsl: Fix "reg" allocing
based on glasm with some tweaks
This commit is contained in:
parent
eaff1030de
commit
64337f004d
10 changed files with 938 additions and 898 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue