mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 12:04:45 +00:00
Update image_view.cpp
[Render.Vulkan] <Error> image_view.cpp:ImageViewInfo:109: Storage image (num_comps = 4) requires swizzling [BGRA] format 43 dst_sel 3886
This commit is contained in:
parent
808bc7a542
commit
5520457302
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ vk::Format TrySwizzleFormat(vk::Format format, u32 dst_sel) {
|
|||
if (format == vk::Format::eR8G8B8A8Unorm && dst_sel == 0b111100101110) {
|
||||
return vk::Format::eB8G8R8A8Unorm;
|
||||
}
|
||||
if (format == vk::Format::eR8G8B8A8Srgb && dst_sel == 0b111100101110) {
|
||||
return vk::Format::eB8G8R8A8Srgb;
|
||||
}
|
||||
return format;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue