diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-05-08 01:09:34 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:36:12 +0200 |
commit | 1af4414861fda5cad2549372e65ecda090caf2f8 (patch) | |
tree | 683e4a726b5009d3b39678c8d9fecb4e7a260bf5 /src/video_core/renderer_opengl/gl_texture_cache.h | |
parent | Change texture_cache chaching from GPUAddr to CacheAddr (diff) | |
download | yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.gz yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.bz2 yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.lz yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.xz yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.zst yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h index 1722c1bbc..083b5406b 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.h +++ b/src/video_core/renderer_opengl/gl_texture_cache.h @@ -74,7 +74,7 @@ public: void Attach(GLenum attachment) const; GLuint GetTexture() { - return texture_view.texture.handle; + return texture_view.handle; } const SurfaceParams& GetSurfaceParams() const { @@ -104,11 +104,6 @@ public: void DecorateViewName(GPUVAddr gpu_addr, std::string prefix); private: - struct TextureView { - OGLTextureView texture; - u32 swizzle; - }; - u32 EncodeSwizzle(Tegra::Texture::SwizzleSource x_source, Tegra::Texture::SwizzleSource y_source, Tegra::Texture::SwizzleSource z_source, @@ -117,12 +112,13 @@ private: (static_cast<u32>(z_source) << 8) | static_cast<u32>(w_source); } - TextureView CreateTextureView() const; + OGLTextureView CreateTextureView() const; CachedSurface& surface; GLenum target{}; - TextureView texture_view; + OGLTextureView texture_view; + u32 swizzle; }; class TextureCacheOpenGL final : public TextureCacheBase { |