mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-16 15:43:14 +00:00
vulkan: Use more supported 4444 format. (#2366)
This commit is contained in:
parent
1eb0affdea
commit
1a00b1af24
3 changed files with 10 additions and 5 deletions
|
@ -322,6 +322,15 @@ inline CompMapping RemapSwizzle(const DataFormat format, const CompMapping swizz
|
|||
result.a = swizzle.a;
|
||||
return result;
|
||||
}
|
||||
case DataFormat::Format4_4_4_4: {
|
||||
// Remap to a more supported component order.
|
||||
CompMapping result;
|
||||
result.r = swizzle.a;
|
||||
result.g = swizzle.r;
|
||||
result.b = swizzle.g;
|
||||
result.a = swizzle.b;
|
||||
return result;
|
||||
}
|
||||
default:
|
||||
return swizzle;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue