mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-05 01:24:14 +01:00
[dxvk] Add command buffer parameter to cmdFillBuffer
This commit is contained in:
parent
102bceb30c
commit
f7e021f791
@ -599,11 +599,14 @@ namespace dxvk {
|
||||
|
||||
|
||||
void cmdFillBuffer(
|
||||
DxvkCmdBuffer cmdBuffer,
|
||||
VkBuffer dstBuffer,
|
||||
VkDeviceSize dstOffset,
|
||||
VkDeviceSize size,
|
||||
uint32_t data) {
|
||||
m_vkd->vkCmdFillBuffer(m_execBuffer,
|
||||
m_cmdBuffersUsed.set(cmdBuffer);
|
||||
|
||||
m_vkd->vkCmdFillBuffer(getCmdBuffer(cmdBuffer),
|
||||
dstBuffer, dstOffset, size, data);
|
||||
}
|
||||
|
||||
|
@ -341,11 +341,8 @@ namespace dxvk {
|
||||
if (m_execBarriers.isBufferDirty(slice, DxvkAccess::Write))
|
||||
m_execBarriers.recordCommands(m_cmd);
|
||||
|
||||
m_cmd->cmdFillBuffer(
|
||||
slice.handle,
|
||||
slice.offset,
|
||||
slice.length,
|
||||
value);
|
||||
m_cmd->cmdFillBuffer(DxvkCmdBuffer::ExecBuffer,
|
||||
slice.handle, slice.offset, slice.length, value);
|
||||
|
||||
m_execBarriers.accessBuffer(slice,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
|
Loading…
Reference in New Issue
Block a user