vulkan: Use more supported 4444 format. (#2366)

This commit is contained in:
squidbus 2025-02-06 17:45:47 -08:00 committed by GitHub
parent 1eb0affdea
commit 1a00b1af24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 5 deletions

View file

@ -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;
}