Allow safe scratch teardown on device loss

This commit is contained in:
LunaDL committed 2026-11-27 13:19:46 -04:00
1 parent 4c977a0c9c
commit 995aea5740
1 file changed
+2 -2
@@ -176,8 +176,8 @@ static void destroyScratch(const DeviceDispatch* dd, VkDevice dev, VkDescriptorP
S = ScratchState{};
}
void FrameGen::destroyScratchResources() {
destroyScratch(dd_, device_, descPool_);
void FrameGen::destroyScratchResources(bool resetPool) {
destroyScratch(dd_, device_, descPool_, resetPool);
}
void FrameGen::configure(const Config& c) {