forked from MoonsideGames/Refresh
insert missing memory barrier after buffer copy
parent
49d7b1fabc
commit
e59e3e6b02
|
@ -6771,6 +6771,7 @@ static void VULKAN_SetBufferData(
|
|||
VulkanTransferBuffer* transferBuffer;
|
||||
uint8_t* transferBufferPointer;
|
||||
VkBufferCopy bufferCopy;
|
||||
VulkanResourceAccessType accessType = vulkanBuffer->resourceAccessType;
|
||||
|
||||
if (vulkanCommandBuffer->renderPassInProgress)
|
||||
{
|
||||
|
@ -6823,6 +6824,13 @@ static void VULKAN_SetBufferData(
|
|||
&bufferCopy
|
||||
);
|
||||
|
||||
VULKAN_INTERNAL_BufferMemoryBarrier(
|
||||
renderer,
|
||||
vulkanCommandBuffer->commandBuffer,
|
||||
accessType,
|
||||
vulkanBuffer
|
||||
);
|
||||
|
||||
transferBuffer->offset += dataLength;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue