mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 12:42:52 +00:00
Textures: Added a helper function to know if a texture is blocklinear or pitch.
This commit is contained in:
parent
37041ea12c
commit
ad1810e895
|
@ -77,6 +77,11 @@ struct TICEntry {
|
||||||
u32 Height() const {
|
u32 Height() const {
|
||||||
return height_minus_1 + 1;
|
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");
|
static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue