diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-04-14 06:44:16 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:36:11 +0200 |
commit | fb94871791f78703737125cd2e5a13db8b7d1059 (patch) | |
tree | 774dc3eab1bea643568582fd96ea4d96c4bd824b /src/video_core/renderer_opengl/gl_texture_cache.h | |
parent | gl_texture_cache: Initial implementation (diff) | |
download | yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.gz yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.bz2 yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.lz yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.xz yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.zst yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h index f0a524882..b18b32d99 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.h +++ b/src/video_core/renderer_opengl/gl_texture_cache.h @@ -38,6 +38,10 @@ public: void LoadBuffer(); + GLenum GetTarget() const { + return target; + } + GLuint GetTexture() const { return texture.handle; } @@ -56,6 +60,7 @@ private: GLenum format{}; GLenum type{}; bool is_compressed{}; + GLenum target{}; OGLTexture texture; @@ -126,6 +131,10 @@ protected: const std::vector<CachedSurface*>& overlaps); std::unique_ptr<CachedSurface> CreateSurface(const SurfaceParams& params); + +private: + CachedSurfaceView* SurfaceCopy(VAddr cpu_addr, u8* host_ptr, const SurfaceParams& new_params, + CachedSurface* old_surface, const SurfaceParams& old_params); }; } // namespace OpenGL |