1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[dxvk] Use new barrier helper in clearBuffer

This commit is contained in:
Philip Rebohle 2024-10-11 23:14:31 +02:00 committed by Philip Rebohle
parent b771bef837
commit 6e6ee35587

View File

@ -250,15 +250,10 @@ namespace dxvk {
&value); &value);
} }
auto& barriers = replaceBuffer accessBuffer(cmdBuffer,
? m_initBarriers *buffer, offset, length,
: m_execBarriers; VK_PIPELINE_STAGE_2_TRANSFER_BIT,
VK_ACCESS_2_TRANSFER_WRITE_BIT);
barriers.accessBuffer(bufferSlice,
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_ACCESS_TRANSFER_WRITE_BIT,
buffer->info().stages,
buffer->info().access);
m_cmd->trackResource<DxvkAccess::Write>(buffer); m_cmd->trackResource<DxvkAccess::Write>(buffer);
} }