summaryrefslogtreecommitdiffstats
path: root/tools/gfx/d3d12/d3d12-device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/d3d12/d3d12-device.cpp')
-rw-r--r--tools/gfx/d3d12/d3d12-device.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-device.cpp b/tools/gfx/d3d12/d3d12-device.cpp
index cb5404961..35192fd7d 100644
--- a/tools/gfx/d3d12/d3d12-device.cpp
+++ b/tools/gfx/d3d12/d3d12-device.cpp
@@ -2231,6 +2231,7 @@ Result DeviceImpl::createAccelerationStructure(
IAccelerationStructure** outAS)
{
#if SLANG_GFX_HAS_DXR_SUPPORT
+ assert(desc.buffer != nullptr);
RefPtr<AccelerationStructureImpl> result = new AccelerationStructureImpl();
result->m_device5 = m_device5;
result->m_buffer = static_cast<BufferResourceImpl*>(desc.buffer);