From 8990d270e3a0c01b1f7abbf4f79556c5ef82a096 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Fri, 25 Feb 2022 02:58:42 -0800 Subject: Add isOccluded() and setFullScreenMode() to ISwapchain (#2145) * Added isOccluded() and setFullScreenMode() to ISwapchain and provided implementations for D3D12 (all others currently return false) * Removed isWindowOccluded variable and directly return the result of m_swapchain3->Present * Restart CI --- tools/gfx/debug-layer.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tools/gfx/debug-layer.cpp') diff --git a/tools/gfx/debug-layer.cpp b/tools/gfx/debug-layer.cpp index 9cd8d216c..0926c5273 100644 --- a/tools/gfx/debug-layer.cpp +++ b/tools/gfx/debug-layer.cpp @@ -1638,6 +1638,18 @@ Result DebugSwapchain::resize(uint32_t width, uint32_t height) return baseObject->resize(width, height); } +bool DebugSwapchain::isOccluded() +{ + SLANG_GFX_API_FUNC; + return baseObject->isOccluded(); +} + +Result DebugSwapchain::setFullScreenMode(bool mode) +{ + SLANG_GFX_API_FUNC; + return baseObject->setFullScreenMode(mode); +} + void DebugSwapchain::maybeRebuildImageList() { SLANG_GFX_API_FUNC; -- cgit v1.2.3