mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-17 17:05:02 +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) {
|
inline CompMapping RemapSwizzle(const DataFormat format, const CompMapping swizzle) {
|
||||||
switch (format) {
|
switch (format) {
|
||||||
|
case DataFormat::Format1_5_5_5:
|
||||||
case DataFormat::Format11_11_10: {
|
case DataFormat::Format11_11_10: {
|
||||||
CompMapping result;
|
CompMapping result;
|
||||||
result.r = swizzle.b;
|
result.r = swizzle.b;
|
||||||
|
@ -314,14 +315,6 @@ inline CompMapping RemapSwizzle(const DataFormat format, const CompMapping swizz
|
||||||
result.a = swizzle.r;
|
result.a = swizzle.r;
|
||||||
return result;
|
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: {
|
case DataFormat::Format4_4_4_4: {
|
||||||
// Remap to a more supported component order.
|
// Remap to a more supported component order.
|
||||||
CompMapping result;
|
CompMapping result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue