From ad1810e895b49f47eb5932e4db7ad1ff2719f5ca Mon Sep 17 00:00:00 2001 From: Subv Date: Mon, 26 Mar 2018 21:40:30 -0500 Subject: Textures: Added a helper function to know if a texture is blocklinear or pitch. --- src/video_core/textures/texture.h | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.3