mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-14 01:27:55 -05:00
glsl: Allow dynamic tracking of variable allocation
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user