From f4cbe28532ee474496c200478a320e080fb90c80 Mon Sep 17 00:00:00 2001 From: LunaDL <91587464+EnzoDLofi@users.noreply.github.com> Date: Fri, 27 Nov 2026 01:42:35 -0400 Subject: [PATCH] Add owned-device scratch cleanup helper --- app/src/main/cpp/framegen/ddfg/record_impl.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/cpp/framegen/ddfg/record_impl.inc b/app/src/main/cpp/framegen/ddfg/record_impl.inc index 1c34af2783..81a2b84d86 100644 --- a/app/src/main/cpp/framegen/ddfg/record_impl.inc +++ b/app/src/main/cpp/framegen/ddfg/record_impl.inc @@ -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);