diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/var_alloc.h')
-rw-r--r-- | src/shader_recompiler/backend/glsl/var_alloc.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/var_alloc.h b/src/shader_recompiler/backend/glsl/var_alloc.h index ed936f8dc..ab1d1acbd 100644 --- a/src/shader_recompiler/backend/glsl/var_alloc.h +++ b/src/shader_recompiler/backend/glsl/var_alloc.h @@ -57,11 +57,10 @@ static_assert(sizeof(Id) == sizeof(u32)); class VarAlloc { public: - static constexpr size_t NUM_VARS = 1023; struct UseTracker { - size_t num_used{}; - std::bitset<NUM_VARS> var_use{}; bool uses_temp{}; + size_t num_used{}; + std::vector<bool> var_use; }; /// Used for explicit usages of variables, may revert to temporaries |