summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv2018-03-26 21:40:30 -0500
committerGravatar James Rowe2018-04-06 20:40:23 -0600
commitad1810e895b49f47eb5932e4db7ad1ff2719f5ca (patch)
treefcb8482066d139aa4e329886c9047c46504ea785 /src
parentMerge pull request #310 from N00byKing/patch-1 (diff)
downloadyuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.tar.gz
yuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.tar.xz
yuzu-ad1810e895b49f47eb5932e4db7ad1ff2719f5ca.zip
Textures: Added a helper function to know if a texture is blocklinear or pitch.
Diffstat (limited to 'src')
-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 {
77 u32 Height() const { 77 u32 Height() const {
78 return height_minus_1 + 1; 78 return height_minus_1 + 1;
79 } 79 }
80
81 bool IsTiled() const {
82 return header_version == TICHeaderVersion::BlockLinear ||
83 header_version == TICHeaderVersion::BlockLinearColorKey;
84 }
80}; 85};
81static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size"); 86static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size");
82 87