diff options
author | bunnei <bunneidev@gmail.com> | 2022-08-14 11:36:36 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:53 +0200 |
commit | f5fd6b5c8674fcf64a3e70809ee0a34d3a95beb6 (patch) | |
tree | 5156a04816d6556b8babe7d69301f18098b8dd1d /src/video_core/engines/engine_upload.h | |
parent | Maxwell3D: Add small_index_2 (diff) | |
download | yuzu-f5fd6b5c8674fcf64a3e70809ee0a34d3a95beb6.tar yuzu-f5fd6b5c8674fcf64a3e70809ee0a34d3a95beb6.tar.gz yuzu-f5fd6b5c8674fcf64a3e70809ee0a34d3a95beb6.tar.bz2 yuzu-f5fd6b5c8674fcf64a3e70809ee0a34d3a95beb6.tar.lz yuzu-f5fd6b5c8674fcf64a3e70809ee0a34d3a95beb6.tar.xz yuzu-f5fd6b5c8674fcf64a3e70809ee0a34d3a95beb6.tar.zst yuzu-f5fd6b5c8674fcf64a3e70809ee0a34d3a95beb6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/engine_upload.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/engines/engine_upload.h b/src/video_core/engines/engine_upload.h index 94ff3314a..f08f6e36a 100644 --- a/src/video_core/engines/engine_upload.h +++ b/src/video_core/engines/engine_upload.h @@ -3,6 +3,7 @@ #pragma once +#include <span> #include <vector> #include "common/bit_field.h" #include "common/common_types.h" @@ -33,7 +34,7 @@ struct Registers { u32 width; u32 height; u32 depth; - u32 z; + u32 layer; u32 x; u32 y; @@ -62,11 +63,14 @@ public: void ProcessExec(bool is_linear_); void ProcessData(u32 data, bool is_last_call); + void ProcessData(const u32* data, size_t num_data); /// Binds a rasterizer to this engine. void BindRasterizer(VideoCore::RasterizerInterface* rasterizer); private: + void ProcessData(std::span<const u8> read_buffer); + u32 write_offset = 0; u32 copy_size = 0; std::vector<u8> inner_buffer; |