vk_pipeline_cache: Add fallbacks for R8Srgb and B5G6R5 (#3264)

* vk_pipeline_cache: Add fallbacks for R8Srgb and B5G6R5

* blit_helper: Fix validation error

* renderer_vulkan: Emulate B5G6R5 with swizzle
This commit is contained in:
TheTurtle
2025-07-18 12:25:07 +03:00
committed by GitHub
parent 3019bfb978
commit b56039b15a
12 changed files with 39 additions and 32 deletions

View File

@@ -248,6 +248,15 @@ constexpr CompMapping RemapSwizzle(const DataFormat format, const CompMapping sw
result.a = swizzle.r;
return result;
}
case DataFormat::Format5_6_5: {
// Remap to a more supported component order.
CompMapping result;
result.r = swizzle.b;
result.g = swizzle.g;
result.b = swizzle.r;
result.a = swizzle.a;
return result;
}
default:
return swizzle;
}