diff options
| author | Yong He <yonghe@outlook.com> | 2022-10-12 14:51:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-12 14:51:13 -0700 |
| commit | 344898b091867e5450a3fa432a207d75255df77a (patch) | |
| tree | e9779a112e371ad141d1f6d9b8778acb4207179b /tools/gfx/debug-layer/debug-command-buffer.h | |
| parent | d96250bcc2e8fedb485df3ed0fdc28f89f6d23c8 (diff) | |
Add gfx debug layer trampoline for D3D12 interfaces. (#2445)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/debug-layer/debug-command-buffer.h')
| -rw-r--r-- | tools/gfx/debug-layer/debug-command-buffer.h | 5 |
1 files changed, 3 insertions, 2 deletions
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<ICommandBuffer> +class DebugCommandBuffer : public DebugObject<ICommandBuffer>, 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(); |
