diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-11-21 03:49:37 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-11-21 03:49:37 +0100 |
commit | a41c6dafea6e00d674cfcf3e1b6576fa208acf81 (patch) | |
tree | 077f23f06f4eaf923156532e0d0a21ce8cd75be4 /src/video_core | |
parent | vk_blit_image: Consolidate CreatePipelineTargetEx functions (diff) | |
download | yuzu-a41c6dafea6e00d674cfcf3e1b6576fa208acf81.tar yuzu-a41c6dafea6e00d674cfcf3e1b6576fa208acf81.tar.gz yuzu-a41c6dafea6e00d674cfcf3e1b6576fa208acf81.tar.bz2 yuzu-a41c6dafea6e00d674cfcf3e1b6576fa208acf81.tar.lz yuzu-a41c6dafea6e00d674cfcf3e1b6576fa208acf81.tar.xz yuzu-a41c6dafea6e00d674cfcf3e1b6576fa208acf81.tar.zst yuzu-a41c6dafea6e00d674cfcf3e1b6576fa208acf81.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 3964424af..c72f0c897 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -787,9 +787,9 @@ VkBuffer TextureCacheRuntime::GetTemporaryBuffer(size_t needed_size) { return *buffers[level]; } const auto new_size = Common::NextPow2(needed_size); - VkBufferUsageFlags flags = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT | - VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT | - VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT; + static constexpr VkBufferUsageFlags flags = + VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT | + VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT; buffers[level] = device.GetLogical().CreateBuffer({ .sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, .pNext = nullptr, |