add R8Uint in image Detiling

used by InFamous, and maybe other games
This commit is contained in:
Mahmoud Adel 2024-12-17 17:43:37 +02:00 committed by GitHub
parent 87773a417b
commit 3523a2fd71
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) { vk::Format DemoteImageFormatForDetiling(vk::Format format) {
switch (format) { switch (format) {
case vk::Format::eR8Uint:
case vk::Format::eR8Unorm: case vk::Format::eR8Unorm:
return vk::Format::eR8Uint; return vk::Format::eR8Uint;
case vk::Format::eR4G4B4A4UnormPack16: case vk::Format::eR4G4B4A4UnormPack16: