added data_format=36 and num_format=9

This commit is contained in:
Emulator-Team-2 2024-08-28 18:10:23 +02:00 committed by GitHub
parent e57d55e6e9
commit 08036d2b49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -296,6 +296,7 @@ std::span<const vk::Format> GetAllFormats() {
vk::Format::eB10G11R11UfloatPack32,
vk::Format::eBc1RgbaSrgbBlock,
vk::Format::eBc1RgbaUnormBlock,
vk::Format::eBc2SrgbBlock,
vk::Format::eBc2UnormBlock,
vk::Format::eBc3SrgbBlock,
vk::Format::eBc3UnormBlock,
@ -457,6 +458,9 @@ vk::Format SurfaceFormat(AmdGpu::DataFormat data_format, AmdGpu::NumberFormat nu
}
if (data_format == AmdGpu::DataFormat::FormatBc7 && num_format == AmdGpu::NumberFormat::Unorm) {
return vk::Format::eBc7UnormBlock;
}
if (data_format == AmdGpu::DataFormat::FormatBc2 && num_format == AmdGpu::NumberFormat::Srgb) {
return vk::Format::eBc2SrgbBlock;
}
if (data_format == AmdGpu::DataFormat::FormatBc2 && num_format == AmdGpu::NumberFormat::Unorm) {
return vk::Format::eBc2UnormBlock;