mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 03:24:49 +00:00
RemapSwizzle formatting (#2368)
This doesn't change anything, it just reduces duplicate information.
This commit is contained in:
parent
78ea536c95
commit
46cbee1585
1 changed files with 1 additions and 8 deletions
|
@ -298,6 +298,7 @@ inline NumberFormat RemapNumberFormat(const NumberFormat format, const DataForma
|
|||
|
||||
inline CompMapping RemapSwizzle(const DataFormat format, const CompMapping swizzle) {
|
||||
switch (format) {
|
||||
case DataFormat::Format1_5_5_5:
|
||||
case DataFormat::Format11_11_10: {
|
||||
CompMapping result;
|
||||
result.r = swizzle.b;
|
||||
|
@ -314,14 +315,6 @@ inline CompMapping RemapSwizzle(const DataFormat format, const CompMapping swizz
|
|||
result.a = swizzle.r;
|
||||
return result;
|
||||
}
|
||||
case DataFormat::Format1_5_5_5: {
|
||||
CompMapping result;
|
||||
result.r = swizzle.b;
|
||||
result.g = swizzle.g;
|
||||
result.b = swizzle.r;
|
||||
result.a = swizzle.a;
|
||||
return result;
|
||||
}
|
||||
case DataFormat::Format4_4_4_4: {
|
||||
// Remap to a more supported component order.
|
||||
CompMapping result;
|
||||
|
|
Loading…
Add table
Reference in a new issue