Reduce bind group cache retention & clear on resize

This commit is contained in:
Luke Street
2026-04-21 01:06:16 -06:00
parent 5d420c9f73
commit 63cc5da669
3 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -12,6 +12,7 @@
#include <webgpu/webgpu.h>
#include <webgpu/webgpu_cpp.h>
#include "../gfx/common.hpp"
#include "../internal.hpp"
#include "../window.hpp"
@@ -655,7 +656,7 @@ void resize_swapchain(uint32_t width, uint32_t height, uint32_t native_width, ui
}
if (sizeChanged) {
gx::clear_copy_texture_cache();
gfx::clear_offscreen_cache();
gfx::clear_caches();
}
g_graphicsConfig.surfaceConfiguration.width = native_width;
g_graphicsConfig.surfaceConfiguration.height = native_height;