diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-17 07:16:15 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-02-13 06:17:24 +0100 |
commit | a02b4e1df662dcc2d2edd7712539eabf2eef5d89 (patch) | |
tree | 6311228f312d4d22a9776587a0bd8af5bbeff328 /src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp | |
parent | vk_staging_buffer_pool: Add stream buffer for small uploads (diff) | |
download | yuzu-a02b4e1df662dcc2d2edd7712539eabf2eef5d89.tar yuzu-a02b4e1df662dcc2d2edd7712539eabf2eef5d89.tar.gz yuzu-a02b4e1df662dcc2d2edd7712539eabf2eef5d89.tar.bz2 yuzu-a02b4e1df662dcc2d2edd7712539eabf2eef5d89.tar.lz yuzu-a02b4e1df662dcc2d2edd7712539eabf2eef5d89.tar.xz yuzu-a02b4e1df662dcc2d2edd7712539eabf2eef5d89.tar.zst yuzu-a02b4e1df662dcc2d2edd7712539eabf2eef5d89.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp index 275d740b8..bc71202e2 100644 --- a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp +++ b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp @@ -86,7 +86,8 @@ StagingBufferPool::StagingBufferPool(const Device& device_, MemoryAllocator& mem .pNext = nullptr, .flags = 0, .size = STREAM_BUFFER_SIZE, - .usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT, + .usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT | + VK_BUFFER_USAGE_INDEX_BUFFER_BIT, .sharingMode = VK_SHARING_MODE_EXCLUSIVE, .queueFamilyIndexCount = 0, .pQueueFamilyIndices = nullptr, |