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);
|
&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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user