mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-15 08:38:02 -05:00
glsl: Fix "reg" allocing
based on glasm with some tweaks
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user