From ae11538f5d667b11d3b3191a827093f3727eed1b Mon Sep 17 00:00:00 2001 From: skallweitNV <64953474+skallweitNV@users.noreply.github.com> Date: Wed, 25 Jan 2023 17:48:55 +0100 Subject: GFX report live objects (#2609) * Add utility to call D3D ReportLiveObjects * Add gfxReportLiveObjects API call * Only warn on swapchain image references --- tools/gfx/debug-layer/debug-swap-chain.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/gfx/debug-layer/debug-swap-chain.cpp') diff --git a/tools/gfx/debug-layer/debug-swap-chain.cpp b/tools/gfx/debug-layer/debug-swap-chain.cpp index 3c8058b5c..b1d3bc201 100644 --- a/tools/gfx/debug-layer/debug-swap-chain.cpp +++ b/tools/gfx/debug-layer/debug-swap-chain.cpp @@ -55,8 +55,10 @@ Result DebugSwapchain::resize(GfxCount width, GfxCount height) { if (image->debugGetReferenceCount() != 1) { - GFX_DIAGNOSE_ERROR("all swapchain images must be released before calling resize()."); - return SLANG_FAIL; + // Only warn here because tools like NSight might keep + // an additional reference to swapchain images. + GFX_DIAGNOSE_WARNING("all swapchain images must be released before calling resize()."); + break; } } m_images.clearAndDeallocate(); -- cgit v1.2.3