added data_format=36 and num_format=9
This commit is contained in:
parent
e57d55e6e9
commit
08036d2b49
|
@ -296,6 +296,7 @@ std::span<const vk::Format> GetAllFormats() {
|
||||||
vk::Format::eB10G11R11UfloatPack32,
|
vk::Format::eB10G11R11UfloatPack32,
|
||||||
vk::Format::eBc1RgbaSrgbBlock,
|
vk::Format::eBc1RgbaSrgbBlock,
|
||||||
vk::Format::eBc1RgbaUnormBlock,
|
vk::Format::eBc1RgbaUnormBlock,
|
||||||
|
vk::Format::eBc2SrgbBlock,
|
||||||
vk::Format::eBc2UnormBlock,
|
vk::Format::eBc2UnormBlock,
|
||||||
vk::Format::eBc3SrgbBlock,
|
vk::Format::eBc3SrgbBlock,
|
||||||
vk::Format::eBc3UnormBlock,
|
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) {
|
if (data_format == AmdGpu::DataFormat::FormatBc7 && num_format == AmdGpu::NumberFormat::Unorm) {
|
||||||
return vk::Format::eBc7UnormBlock;
|
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) {
|
if (data_format == AmdGpu::DataFormat::FormatBc2 && num_format == AmdGpu::NumberFormat::Unorm) {
|
||||||
return vk::Format::eBc2UnormBlock;
|
return vk::Format::eBc2UnormBlock;
|
||||||
|
|
Loading…
Reference in New Issue