We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb4f9d commit c5c6088Copy full SHA for c5c6088
backends/vulkan/runtime/vk_api/memory/Allocator.cpp
@@ -151,7 +151,8 @@ VulkanBuffer Allocator::create_staging_buffer(const VkDeviceSize size) {
151
// Staging buffers are accessed by both the CPU and GPU, so set the
152
// appropriate flags to indicate that the host device will be accessing
153
// the data from this buffer.
154
- alloc_create_info.flags |= VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT |
+ alloc_create_info.flags |=
155
+ VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT |
156
VMA_ALLOCATION_CREATE_MAPPED_BIT;
157
alloc_create_info.usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST;
158
alloc_create_info.requiredFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
0 commit comments