mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-25 22:01:12 +01:00
Mark freshly allocated descriptor slots as active
This commit is contained in:
parent
f3184cdff1
commit
eb4a9bab11
@ -106,6 +106,7 @@ namespace skyline::gpu {
|
|||||||
auto set{AllocateVkDescriptorSet(layout)};
|
auto set{AllocateVkDescriptorSet(layout)};
|
||||||
if (set.result == vk::Result::eSuccess) {
|
if (set.result == vk::Result::eSuccess) {
|
||||||
auto &slot{slots.emplace_back(set.value)};
|
auto &slot{slots.emplace_back(set.value)};
|
||||||
|
slot.active.test_and_set(std::memory_order_relaxed);
|
||||||
return ActiveDescriptorSet{pool, &slot};
|
return ActiveDescriptorSet{pool, &slot};
|
||||||
} else {
|
} else {
|
||||||
lastResult = set.result;
|
lastResult = set.result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user