From 344898b091867e5450a3fa432a207d75255df77a Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 12 Oct 2022 14:51:13 -0700 Subject: Add gfx debug layer trampoline for D3D12 interfaces. (#2445) Co-authored-by: Yong He --- tools/gfx/debug-layer/debug-command-buffer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/gfx/debug-layer/debug-command-buffer.h') diff --git a/tools/gfx/debug-layer/debug-command-buffer.h b/tools/gfx/debug-layer/debug-command-buffer.h index d7633960b..33709fb2c 100644 --- a/tools/gfx/debug-layer/debug-command-buffer.h +++ b/tools/gfx/debug-layer/debug-command-buffer.h @@ -12,14 +12,13 @@ using namespace Slang; namespace debug { -class DebugCommandBuffer : public DebugObject +class DebugCommandBuffer : public DebugObject, ICommandBufferD3D12 { public: SLANG_COM_OBJECT_IUNKNOWN_ALL; public: DebugTransientResourceHeap* m_transientHeap; - private: DebugRenderCommandEncoder m_renderCommandEncoder; DebugComputeCommandEncoder m_computeCommandEncoder; @@ -41,6 +40,8 @@ public: encodeRayTracingCommands(IRayTracingCommandEncoder** outEncoder) override; virtual SLANG_NO_THROW void SLANG_MCALL close() override; virtual SLANG_NO_THROW Result SLANG_MCALL getNativeHandle(InteropHandle* outHandle) override; + virtual SLANG_NO_THROW void SLANG_MCALL invalidateDescriptorHeapBinding() override; + virtual SLANG_NO_THROW void SLANG_MCALL ensureInternalDescriptorHeapsBound() override; private: void checkEncodersClosedBeforeNewEncoder(); -- cgit v1.2.3