diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-19 00:09:59 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-20 00:08:04 +0100 |
commit | 4bc2d821300354e0d178c520b4b3520afbf8ff20 (patch) | |
tree | 89c6eff1a2ac90fc106ea229de211411f5f4871b /src/video_core/engines/engine_upload.h | |
parent | common: Add ScratchBuffer class (diff) | |
download | yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.gz yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.bz2 yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.lz yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.xz yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.tar.zst yuzu-4bc2d821300354e0d178c520b4b3520afbf8ff20.zip |
Diffstat (limited to 'src/video_core/engines/engine_upload.h')
-rw-r--r-- | src/video_core/engines/engine_upload.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/engines/engine_upload.h b/src/video_core/engines/engine_upload.h index 94fafd9dc..7242d2529 100644 --- a/src/video_core/engines/engine_upload.h +++ b/src/video_core/engines/engine_upload.h @@ -4,9 +4,10 @@ #pragma once #include <span> -#include <vector> + #include "common/bit_field.h" #include "common/common_types.h" +#include "common/scratch_buffer.h" namespace Tegra { class MemoryManager; @@ -73,8 +74,8 @@ private: u32 write_offset = 0; u32 copy_size = 0; - std::vector<u8> inner_buffer; - std::vector<u8> tmp_buffer; + Common::ScratchBuffer<u8> inner_buffer; + Common::ScratchBuffer<u8> tmp_buffer; bool is_linear = false; Registers& regs; MemoryManager& memory_manager; |