Mark freshly allocated descriptor slots as active

This commit is contained in:
Billy Laws 2022-09-23 22:08:03 +01:00
parent f3184cdff1
commit eb4a9bab11

View File

@ -106,6 +106,7 @@ namespace skyline::gpu {
auto set{AllocateVkDescriptorSet(layout)};
if (set.result == vk::Result::eSuccess) {
auto &slot{slots.emplace_back(set.value)};
slot.active.test_and_set(std::memory_order_relaxed);
return ActiveDescriptorSet{pool, &slot};
} else {
lastResult = set.result;