Add a common TextureAlpha enum, replacing CheckAlphaResult and ReplacedTextureAlpha.

This commit is contained in:
Henrik Rydgård committed 2026-06-09 11:25:50 +02:00
1 parent fdcf923c75
commit ec6c7b08f5
12 files changed
+73 -73

No files matched your search

+2 -2
View File
@@ -941,7 +941,7 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
}
if (plan.doReplace) {
entry->SetAlphaStatus(TexCacheEntry::TexStatus(plan.replaced->AlphaStatus()));
entry->SetAlphaStatus(plan.replaced->AlphaStatus());
}
}
@@ -1015,7 +1015,7 @@ void TextureCacheVulkan::LoadVulkanTextureLevel(TexCacheEntry &entry, uint8_t *w
decPitch = rowPitch;
}
CheckAlphaResult alphaResult = DecodeTextureLevel((u8 *)pixelData, decPitch, tfmt, clutformat, texaddr, level, bufw, texDecFlags);
TextureAlpha alphaResult = DecodeTextureLevel((u8 *)pixelData, decPitch, tfmt, clutformat, texaddr, level, bufw, texDecFlags);
entry.SetAlphaStatus(alphaResult, level);
if (scaleFactor > 1) {