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);