From 839ac182dc7991f7b62fdb63cb40badf253cc0a5 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Wed, 6 Jan 2021 07:25:04 +0100 Subject: [PATCH] early-access version 1292 --- README.md | 2 +- src/video_core/renderer_vulkan/vk_staging_buffer_pool.h | 2 +- src/video_core/renderer_vulkan/vk_texture_cache.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 757752d9a..3912937b6 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 1291. +This is the source code for early-access 1292. ## Legal Notice diff --git a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.h b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.h index 882ae2beb..d42918a47 100755 --- a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.h +++ b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.h @@ -40,7 +40,7 @@ private: u64 tick = 0; StagingBufferRef Ref() const noexcept { - return StagingBufferRef{ + return { .buffer = *buffer, .mapped_span = mapped_span, }; diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 24e5c82eb..ab14922d7 100755 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -555,7 +555,7 @@ void TextureCacheRuntime::Finish() { ImageBufferMap TextureCacheRuntime::MapUploadBuffer(size_t size) { const auto staging_ref = staging_buffer_pool.Request(size, MemoryUsage::Upload); - return ImageBufferMap{ + return { .handle = staging_ref.buffer, .span = staging_ref.mapped_span, }; @@ -563,7 +563,7 @@ ImageBufferMap TextureCacheRuntime::MapUploadBuffer(size_t size) { ImageBufferMap TextureCacheRuntime::MapDownloadBuffer(size_t size) { const auto staging_ref = staging_buffer_pool.Request(size, MemoryUsage::Download); - return ImageBufferMap{ + return { .handle = staging_ref.buffer, .span = staging_ref.mapped_span, };