Skip to content

Commit

Permalink
Added a missing barrier in clearBufferUInt on Vulkan.
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Oct 7, 2021
1 parent 3f58f59 commit e618004
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vulkan/vulkan-buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ namespace nvrhi::vulkan

endRenderPass();

if (m_EnableAutomaticBarriers)
{
requireBufferState(vkbuf, ResourceStates::CopyDest);
}
commitBarriers();

m_CurrentCmdBuf->cmdBuf.fillBuffer(vkbuf->buffer, 0, vkbuf->desc.byteSize, clearValue);
m_CurrentCmdBuf->referencedResources.push_back(b);
}
Expand Down

0 comments on commit e618004

Please sign in to comment.