yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

gl_texture_cache: Address some feedback

This commit is contained in:
ReinUsesLisp 2019-06-24 02:01:44 -03:00
parent 0b6df52109
commit 4b2ff1e00e
1 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,8 @@
#include <array> #include <array>
#include <functional> #include <functional>
#include <memory>
#include <unordered_map>
#include <utility> #include <utility>
#include <vector> #include <vector>
@ -34,7 +36,7 @@ class CachedSurface final : public VideoCommon::SurfaceBase<View> {
friend CachedSurfaceView; friend CachedSurfaceView;
public: public:
explicit CachedSurface(const GPUVAddr gpu_addr, const SurfaceParams& params); explicit CachedSurface(GPUVAddr gpu_addr, const SurfaceParams& params);
~CachedSurface(); ~CachedSurface();
void UploadTexture(std::vector<u8>& staging_buffer) override; void UploadTexture(std::vector<u8>& staging_buffer) override;
@ -52,7 +54,7 @@ protected:
void DecorateSurfaceName(); void DecorateSurfaceName();
View CreateView(const ViewParams& view_key) override; View CreateView(const ViewParams& view_key) override;
View CreateViewInner(const ViewParams& view_key, const bool is_proxy); View CreateViewInner(const ViewParams& view_key, bool is_proxy);
private: private:
void UploadTextureMipmap(u32 level, std::vector<u8>& staging_buffer); void UploadTextureMipmap(u32 level, std::vector<u8>& staging_buffer);