aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_context.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-20 23:38:38 -0400
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:35 -0400
commit64337f004d9249c4408fec75bd1bbcc0f2a1408d (patch)
tree401c988bd203d3b69f005640d31b154702888c6c /src/shader_recompiler/backend/glsl/emit_context.h
parenteaff1030de07f3739794207403ea833ee91c0034 (diff)
glsl: Fix "reg" allocing
based on glasm with some tweaks
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.h')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.h b/src/shader_recompiler/backend/glsl/emit_context.h
index ffc97007dd..8d093a8538 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.h
+++ b/src/shader_recompiler/backend/glsl/emit_context.h
@@ -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