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:
parent
b771bef837
commit
6e6ee35587
@ -250,15 +250,10 @@ namespace dxvk {
|
||||
&value);
|
||||
}
|
||||
|
||||
auto& barriers = replaceBuffer
|
||||
? m_initBarriers
|
||||
: m_execBarriers;
|
||||
|
||||
barriers.accessBuffer(bufferSlice,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
VK_ACCESS_TRANSFER_WRITE_BIT,
|
||||
buffer->info().stages,
|
||||
buffer->info().access);
|
||||
accessBuffer(cmdBuffer,
|
||||
*buffer, offset, length,
|
||||
VK_PIPELINE_STAGE_2_TRANSFER_BIT,
|
||||
VK_ACCESS_2_TRANSFER_WRITE_BIT);
|
||||
|
||||
m_cmd->trackResource<DxvkAccess::Write>(buffer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user