Add owned-device scratch cleanup helper

This commit is contained in:
LunaDL committed 2026-11-27 01:42:35 -04:00
1 parent 06717ec356
commit f4cbe28532
1 file changed
+4
@@ -152,6 +152,10 @@ static void destroyScratch(const DeviceDispatch* dd, VkDevice dev, VkDescriptorP
S = ScratchState{};
}
void FrameGen::destroyScratchResources() {
destroyScratch(dd_, device_, descPool_);
}
void FrameGen::configure(const Config& c) {
cfg_ = c; cfg_.sanitize();
int want = flowFinestForPreset(cfg_.perfPreset);