fix multiple copy sync hazard
parent
ae98ae2345
commit
53c439ef04
|
@ -7869,6 +7869,14 @@ static void VULKAN_SetBufferData(
|
|||
vulkanBuffer
|
||||
);
|
||||
|
||||
// this janky call will wait for transfer writes to finish!
|
||||
VULKAN_INTERNAL_BufferMemoryBarrier(
|
||||
renderer,
|
||||
vulkanCommandBuffer->commandBuffer,
|
||||
RESOURCE_ACCESS_TRANSFER_WRITE,
|
||||
vulkanBuffer
|
||||
);
|
||||
|
||||
bufferCopy.srcOffset = transferBuffer->offset;
|
||||
bufferCopy.dstOffset = offsetInBytes;
|
||||
bufferCopy.size = (VkDeviceSize) dataLength;
|
||||
|
|
Loading…
Reference in New Issue