Explorar o código

Textures: Added a helper function to know if a texture is blocklinear or pitch.

Subv %!s(int64=8) %!d(string=hai) anos
pai
achega
ad1810e895
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/video_core/textures/texture.h

+ 5 - 0
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");