From cf34d2830a3103b2b47a4140d27d054b797705f2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 5 Oct 2022 19:35:47 -0700 Subject: Various gfx fixes. (#2434) --- tools/gfx/d3d12/d3d12-command-encoder.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/gfx/d3d12/d3d12-command-encoder.cpp') diff --git a/tools/gfx/d3d12/d3d12-command-encoder.cpp b/tools/gfx/d3d12/d3d12-command-encoder.cpp index 59498856c..a9245bebc 100644 --- a/tools/gfx/d3d12/d3d12-command-encoder.cpp +++ b/tools/gfx/d3d12/d3d12-command-encoder.cpp @@ -353,6 +353,7 @@ void ResourceCommandEncoderImpl::clearResourceView( IResourceView* view, ClearValue* clearValue, ClearResourceViewFlags::Enum flags) { auto viewImpl = static_cast(view); + m_commandBuffer->bindDescriptorHeaps(); switch (view->getViewDesc()->type) { case IResourceView::Type::RenderTarget: -- cgit v1.2.3