From 06d04ab5e63ad43d7ad9de3fbc4c8ed64b13265a Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 14 Mar 2022 11:07:30 -0700 Subject: Small fix in d3d12 transient heap. (#2160) Use `ShortList` instead of `Array` for `m_waitHandles`. Co-authored-by: Yong He --- tools/gfx/d3d12/render-d3d12.cpp | 2 +- tools/gfx/d3d12/render-d3d12.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp index de3081f40..a5b584349 100644 --- a/tools/gfx/d3d12/render-d3d12.cpp +++ b/tools/gfx/d3d12/render-d3d12.cpp @@ -2787,7 +2787,7 @@ Result AccelerationStructureImpl::getNativeHandle(InteropHandle* outHandle) Result TransientResourceHeapImpl::synchronizeAndReset() { WaitForMultipleObjects( - (DWORD)m_waitHandles.getCount(), m_waitHandles.getBuffer(), TRUE, INFINITE); + (DWORD)m_waitHandles.getCount(), m_waitHandles.getArrayView().getBuffer(), TRUE, INFINITE); m_waitHandles.clear(); m_currentViewHeapIndex = -1; m_currentSamplerHeapIndex = -1; diff --git a/tools/gfx/d3d12/render-d3d12.h b/tools/gfx/d3d12/render-d3d12.h index 2cb9a3fd3..89498d033 100644 --- a/tools/gfx/d3d12/render-d3d12.h +++ b/tools/gfx/d3d12/render-d3d12.h @@ -494,7 +494,7 @@ public: ComPtr fence = nullptr; }; ShortList m_waitInfos; - Array m_waitHandles; + ShortList m_waitHandles; QueueWaitInfo& getQueueWaitInfo(uint32_t queueIndex); // During command submission, we need all the descriptor tables that get -- cgit v1.2.3