diff options
Diffstat (limited to 'tools/gfx/render.cpp')
| -rw-r--r-- | tools/gfx/render.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/gfx/render.cpp b/tools/gfx/render.cpp index 84f537705..048eb8224 100644 --- a/tools/gfx/render.cpp +++ b/tools/gfx/render.cpp @@ -21,6 +21,8 @@ Result SLANG_MCALL getD3D12Adapters(List<AdapterInfo>& outAdapters); Result SLANG_MCALL getVKAdapters(List<AdapterInfo>& outAdapters); Result SLANG_MCALL getCUDAAdapters(List<AdapterInfo>& outAdapters); +Result SLANG_MCALL reportD3DLiveObjects(); + static bool debugLayerEnabled = false; bool isGfxDebugLayerEnabled() { return debugLayerEnabled; } @@ -364,6 +366,15 @@ extern "C" return resultCode; } + SLANG_GFX_API SlangResult SLANG_MCALL + gfxReportLiveObjects() + { +#if SLANG_WINDOWS_FAMILY + SLANG_RETURN_ON_FAIL(reportD3DLiveObjects()); +#endif + return SLANG_OK; + } + SLANG_GFX_API SlangResult SLANG_MCALL gfxSetDebugCallback(IDebugCallback* callback) { _getDebugCallback() = callback; |
