add R8Uint in image Detiling (#1812)

used by InFamous, and maybe other games
This commit is contained in:
Mahmoud Adel 2024-12-18 22:06:30 +02:00 committed by GitHub
parent 32435674f2
commit 1e08099036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -172,6 +172,7 @@ void ConvertTileToLinear(u8* dst, const u8* src, u32 width, u32 height, bool is_
vk::Format DemoteImageFormatForDetiling(vk::Format format) {
switch (format) {
case vk::Format::eR8Uint:
case vk::Format::eR8Unorm:
return vk::Format::eR8Uint;
case vk::Format::eR4G4B4A4UnormPack16: