Updated memory barriers to include staging buffers
This commit is contained in:
parent
1d1018fa0c
commit
263f392cbb
7 changed files with 230 additions and 175 deletions
|
|
@ -26,7 +26,7 @@ OpAlgoDispatch::record(const vk::CommandBuffer& commandBuffer)
|
|||
// Barrier to ensure the data is finished writing to buffer memory
|
||||
for (const std::shared_ptr<Tensor>& tensor :
|
||||
this->mAlgorithm->getTensors()) {
|
||||
tensor->recordBufferMemoryBarrier(
|
||||
tensor->recordPrimaryBufferMemoryBarrier(
|
||||
commandBuffer,
|
||||
vk::AccessFlagBits::eHostWrite,
|
||||
vk::AccessFlagBits::eShaderRead,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue