summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2023-01-25 17:48:55 +0100
committerGitHub <noreply@github.com>2023-01-25 08:48:55 -0800
commitae11538f5d667b11d3b3191a827093f3727eed1b (patch)
tree2670eaad8f6f46484f995ecb28b10883c412c3ea /tools/gfx/debug-layer
parent951ad25e0a9c3b0089c6b996b8e821ac93cf5766 (diff)
GFX report live objects (#2609)
* Add utility to call D3D ReportLiveObjects * Add gfxReportLiveObjects API call * Only warn on swapchain image references
Diffstat (limited to 'tools/gfx/debug-layer')
-rw-r--r--tools/gfx/debug-layer/debug-swap-chain.cpp6
1 files changed, 4 insertions, 2 deletions
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();