summaryrefslogtreecommitdiffstats
path: root/tools/gfx/d3d12/d3d12-command-buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/d3d12/d3d12-command-buffer.cpp')
-rw-r--r--tools/gfx/d3d12/d3d12-command-buffer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-command-buffer.cpp b/tools/gfx/d3d12/d3d12-command-buffer.cpp
index 3a09da037..fb979d3b9 100644
--- a/tools/gfx/d3d12/d3d12-command-buffer.cpp
+++ b/tools/gfx/d3d12/d3d12-command-buffer.cpp
@@ -59,6 +59,13 @@ void CommandBufferImpl::init(
reinit();
+ m_cmdList->QueryInterface<ID3D12GraphicsCommandList6>(m_cmdList6.writeRef());
+if (m_cmdList6)
+ {
+ m_cmdList4 = m_cmdList6;
+ m_cmdList1 = m_cmdList6;
+ return;
+ }
#if SLANG_GFX_HAS_DXR_SUPPORT
m_cmdList->QueryInterface<ID3D12GraphicsCommandList4>(m_cmdList4.writeRef());
if (m_cmdList4)