diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.h')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.h | 6 |
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 ffc97007d..8d093a853 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.h +++ b/src/shader_recompiler/backend/glsl/emit_context.h | |||
| @@ -45,18 +45,14 @@ public: | |||
| 45 | code += '\n'; | 45 | code += '\n'; |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | std::string AllocVar() { | ||
| 49 | return fmt::format("var_{}", var_num++); | ||
| 50 | } | ||
| 51 | |||
| 52 | std::string code; | 48 | std::string code; |
| 53 | RegAlloc reg_alloc; | 49 | RegAlloc reg_alloc; |
| 54 | const Info& info; | 50 | const Info& info; |
| 55 | const Profile& profile; | 51 | const Profile& profile; |
| 56 | u64 var_num{}; | ||
| 57 | 52 | ||
| 58 | private: | 53 | private: |
| 59 | void DefineConstantBuffers(); | 54 | void DefineConstantBuffers(); |
| 55 | void DefineStorageBuffers(); | ||
| 60 | }; | 56 | }; |
| 61 | 57 | ||
| 62 | } // namespace Shader::Backend::GLSL | 58 | } // namespace Shader::Backend::GLSL |