[vk] SanitizeComponent Adjustment

This commit is contained in:
CamilleLaVey 2025-12-01 02:44:14 -04:00 committed by Caio Oliveira
parent 35501741ae
commit 955b3befa9
1 changed files with 3 additions and 2 deletions

View File

@ -32,9 +32,10 @@ constexpr TextureFormat SanitizeFormat(TextureFormat format) {
}
constexpr ComponentType SanitizeComponent(ComponentType component) {
switch (component) {
case static_cast<ComponentType>(0):
if (component == static_cast<ComponentType>(0)) {
return ComponentType::UNORM;
}
switch (component) {
case ComponentType::SNORM_FORCE_FP16:
return ComponentType::SNORM;
case ComponentType::UNORM_FORCE_FP16: