summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/texture.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-27 04:40:30 +0200
committerJames Rowe <jroweboy@gmail.com>2018-04-07 04:40:23 +0200
commitad1810e895b49f47eb5932e4db7ad1ff2719f5ca (patch)
treefcb8482066d139aa4e329886c9047c46504ea785 /src/video_core/textures/texture.h
parentMerge pull request #310 from N00byKing/patch-1 (diff)
downloadyuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.tar
yuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.tar.gz
yuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.tar.bz2
yuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.tar.lz
yuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.tar.xz
yuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.tar.zst
yuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/textures/texture.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h
index 07936f8a3..1145e39f8 100644
--- a/src/video_core/textures/texture.h
+++ b/src/video_core/textures/texture.h
@@ -77,6 +77,11 @@ struct TICEntry {
u32 Height() const {
return height_minus_1 + 1;
}
+
+ bool IsTiled() const {
+ return header_version == TICHeaderVersion::BlockLinear ||
+ header_version == TICHeaderVersion::BlockLinearColorKey;
+ }
};
static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size");