diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-06-26 21:58:40 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-06-26 21:58:40 +0200 |
commit | 6481d91e4a5b5fbae899c3a7924af0b132c16bc8 (patch) | |
tree | e67f6966cabda53be653cda6ba346f88d5f5090d /src/video_core/renderer_vulkan/vk_buffer_cache.cpp | |
parent | Merge pull request #4159 from ogniK5377/mem-manager-dumb-assert (diff) | |
download | yuzu-6481d91e4a5b5fbae899c3a7924af0b132c16bc8.tar yuzu-6481d91e4a5b5fbae899c3a7924af0b132c16bc8.tar.gz yuzu-6481d91e4a5b5fbae899c3a7924af0b132c16bc8.tar.bz2 yuzu-6481d91e4a5b5fbae899c3a7924af0b132c16bc8.tar.lz yuzu-6481d91e4a5b5fbae899c3a7924af0b132c16bc8.tar.xz yuzu-6481d91e4a5b5fbae899c3a7924af0b132c16bc8.tar.zst yuzu-6481d91e4a5b5fbae899c3a7924af0b132c16bc8.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_buffer_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_buffer_cache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp index f10f96cd8..2be38d419 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp @@ -56,7 +56,7 @@ Buffer::Buffer(const VKDevice& device, VKMemoryManager& memory_manager, VKSchedu Buffer::~Buffer() = default; -void Buffer::Upload(std::size_t offset, std::size_t size, const u8* data) const { +void Buffer::Upload(std::size_t offset, std::size_t size, const u8* data) { const auto& staging = staging_pool.GetUnusedBuffer(size, true); std::memcpy(staging.commit->Map(size), data, size); @@ -81,7 +81,7 @@ void Buffer::Upload(std::size_t offset, std::size_t size, const u8* data) const }); } -void Buffer::Download(std::size_t offset, std::size_t size, u8* data) const { +void Buffer::Download(std::size_t offset, std::size_t size, u8* data) { const auto& staging = staging_pool.GetUnusedBuffer(size, true); scheduler.RequestOutsideRenderPassOperationContext(); @@ -110,7 +110,7 @@ void Buffer::Download(std::size_t offset, std::size_t size, u8* data) const { } void Buffer::CopyFrom(const Buffer& src, std::size_t src_offset, std::size_t dst_offset, - std::size_t size) const { + std::size_t size) { scheduler.RequestOutsideRenderPassOperationContext(); const VkBuffer dst_buffer = Handle(); |