summaryrefslogtreecommitdiffstats
path: root/tools/gfx/d3d12/render-d3d12.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-03-14 11:07:30 -0700
committerGitHub <noreply@github.com>2022-03-14 11:07:30 -0700
commit06d04ab5e63ad43d7ad9de3fbc4c8ed64b13265a (patch)
treed8e7286bb924afbbcab9d9d7cb6ae7139bf55319 /tools/gfx/d3d12/render-d3d12.cpp
parent0890fd8f2e485bfdd93ff6227be08ff4142e55d1 (diff)
Small fix in d3d12 transient heap. (#2160)
Use `ShortList` instead of `Array` for `m_waitHandles`. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/d3d12/render-d3d12.cpp')
-rw-r--r--tools/gfx/d3d12/render-d3d12.cpp2
1 files changed, 1 insertions, 1 deletions
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;