mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 21:04:16 +01:00
gl_texture_cache: Address some feedback
This commit is contained in:
parent
0b6df52109
commit
4b2ff1e00e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user