summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-05-21 18:48:28 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-06-21 02:38:33 +0200
commitea1525dab1bf7e9e56471b6d5fd50014bfeb4f96 (patch)
treea44c1ad2957fa0f0239c59b3447e6f574063992a /src/video_core/texture_cache
parenttexture_cache: Handle uncontinuous surfaces. (diff)
downloadyuzu-ea1525dab1bf7e9e56471b6d5fd50014bfeb4f96.tar
yuzu-ea1525dab1bf7e9e56471b6d5fd50014bfeb4f96.tar.gz
yuzu-ea1525dab1bf7e9e56471b6d5fd50014bfeb4f96.tar.bz2
yuzu-ea1525dab1bf7e9e56471b6d5fd50014bfeb4f96.tar.lz
yuzu-ea1525dab1bf7e9e56471b6d5fd50014bfeb4f96.tar.xz
yuzu-ea1525dab1bf7e9e56471b6d5fd50014bfeb4f96.tar.zst
yuzu-ea1525dab1bf7e9e56471b6d5fd50014bfeb4f96.zip
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/surface_params.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/surface_params.h b/src/video_core/texture_cache/surface_params.h
index 13a08a60f..d9aa0b521 100644
--- a/src/video_core/texture_cache/surface_params.h
+++ b/src/video_core/texture_cache/surface_params.h
@@ -167,6 +167,10 @@ public:
return VideoCore::Surface::GetFormatCompressionType(pixel_format);
}
+ bool IsBuffer() const {
+ return target == VideoCore::Surface::SurfaceTarget::TextureBuffer;
+ }
+
std::string TargetName() const;
bool is_tiled;