mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-18 12:38:27 +00:00
added data_format=36 and num_format=9
This commit is contained in:
parent
8f2942252e
commit
128884cc06
|
@ -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 a new issue