Cleanup: quiet switch warnings
This commit is contained in:
@@ -93,6 +93,9 @@ VkImageAspectFlags to_vk_image_aspect_flag_bits(const TextureFormat format)
|
||||
case TextureFormat::SRGBA_8_8_8:
|
||||
case TextureFormat::UFLOAT_9_9_9_EXP_5:
|
||||
return VK_IMAGE_ASPECT_COLOR_BIT;
|
||||
|
||||
case TextureFormat::Invalid:
|
||||
break;
|
||||
}
|
||||
BLI_assert_unreachable();
|
||||
return 0;
|
||||
@@ -267,6 +270,9 @@ VkFormat to_vk_format(const TextureFormat format)
|
||||
return VK_FORMAT_R8G8B8_SRGB;
|
||||
case TextureFormat::UFLOAT_9_9_9_EXP_5:
|
||||
return VK_FORMAT_E5B9G9R9_UFLOAT_PACK32;
|
||||
|
||||
case TextureFormat::Invalid:
|
||||
break;
|
||||
}
|
||||
return VK_FORMAT_UNDEFINED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user