From fcc1a0973f91f0daff9c5c2d0a00208ecb7b91c2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 26 Sep 2022 12:58:29 -0700 Subject: Use d3d12/vk debug layer when gfx debug layer is enabled. (#2411) * Use d3d12/vk debug layer when gfx debug layer is enabled. * Fix. Co-authored-by: Yong He --- tools/gfx/renderer-shared.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/gfx/renderer-shared.h') diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h index 0d71059fc..d0e4b52fb 100644 --- a/tools/gfx/renderer-shared.h +++ b/tools/gfx/renderer-shared.h @@ -45,6 +45,8 @@ struct GfxGUID static const Slang::Guid IID_ID3D12TransientResourceHeap; }; +bool isGfxDebugLayerEnabled(); + // We use a `BreakableReference` to avoid the cyclic reference situation in gfx implementation. // It is a common scenario where objects created from an `IDevice` implementation needs to hold // a strong reference to the device object that creates them. For example, a `Buffer` or a -- cgit v1.2.3