diff options
| author | Yong He <yonghe@outlook.com> | 2022-09-26 12:58:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-26 12:58:29 -0700 |
| commit | fcc1a0973f91f0daff9c5c2d0a00208ecb7b91c2 (patch) | |
| tree | 59c4286f6e81babc97d9ea6e5a42095ff1f9c0f5 /tools/gfx/renderer-shared.h | |
| parent | 4b58c50f394ac912663d86e25e5041157fe8a001 (diff) | |
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 <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/renderer-shared.h')
| -rw-r--r-- | tools/gfx/renderer-shared.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
