mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 12:04:45 +00:00
add fallback format for d16UnormS8Uint which is not supported by intel
This commit is contained in:
parent
132ca9c5a8
commit
358a049565
2 changed files with 3 additions and 0 deletions
|
@ -304,6 +304,7 @@ std::span<const vk::Format> GetAllFormats() {
|
|||
vk::Format::eBc7UnormBlock,
|
||||
vk::Format::eD16Unorm,
|
||||
vk::Format::eD16UnormS8Uint,
|
||||
vk::Format::eD24UnormS8Uint,
|
||||
vk::Format::eD32Sfloat,
|
||||
vk::Format::eD32SfloatS8Uint,
|
||||
vk::Format::eR4G4B4A4UnormPack16,
|
||||
|
|
|
@ -481,6 +481,8 @@ bool Instance::IsFormatSupported(const vk::Format format) const {
|
|||
vk::Format Instance::GetAlternativeFormat(const vk::Format format) const {
|
||||
if (format == vk::Format::eB5G6R5UnormPack16) {
|
||||
return vk::Format::eR5G6B5UnormPack16;
|
||||
} else if (format == vk::Format::eD16UnormS8Uint) {
|
||||
return vk::Format::eD24UnormS8Uint;
|
||||
}
|
||||
return format;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue