|
|
@ -73,7 +73,8 @@ VkFormatFeatureFlags GetFormatFeatures(VkFormatProperties properties, FormatType
|
|
|
|
|
|
|
|
|
|
|
|
std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(
|
|
|
|
std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(
|
|
|
|
vk::PhysicalDevice physical, const vk::InstanceDispatch& dld) {
|
|
|
|
vk::PhysicalDevice physical, const vk::InstanceDispatch& dld) {
|
|
|
|
static constexpr std::array formats{VK_FORMAT_A8B8G8R8_UNORM_PACK32,
|
|
|
|
static constexpr std::array formats{
|
|
|
|
|
|
|
|
VK_FORMAT_A8B8G8R8_UNORM_PACK32,
|
|
|
|
VK_FORMAT_A8B8G8R8_UINT_PACK32,
|
|
|
|
VK_FORMAT_A8B8G8R8_UINT_PACK32,
|
|
|
|
VK_FORMAT_A8B8G8R8_SNORM_PACK32,
|
|
|
|
VK_FORMAT_A8B8G8R8_SNORM_PACK32,
|
|
|
|
VK_FORMAT_A8B8G8R8_SRGB_PACK32,
|
|
|
|
VK_FORMAT_A8B8G8R8_SRGB_PACK32,
|
|
|
@ -91,6 +92,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(
|
|
|
|
VK_FORMAT_R16G16_SNORM,
|
|
|
|
VK_FORMAT_R16G16_SNORM,
|
|
|
|
VK_FORMAT_R16G16_SFLOAT,
|
|
|
|
VK_FORMAT_R16G16_SFLOAT,
|
|
|
|
VK_FORMAT_R16_UNORM,
|
|
|
|
VK_FORMAT_R16_UNORM,
|
|
|
|
|
|
|
|
VK_FORMAT_R16_UINT,
|
|
|
|
VK_FORMAT_R8G8B8A8_SRGB,
|
|
|
|
VK_FORMAT_R8G8B8A8_SRGB,
|
|
|
|
VK_FORMAT_R8G8_UNORM,
|
|
|
|
VK_FORMAT_R8G8_UNORM,
|
|
|
|
VK_FORMAT_R8G8_SNORM,
|
|
|
|
VK_FORMAT_R8G8_SNORM,
|
|
|
@ -142,7 +144,8 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(
|
|
|
|
VK_FORMAT_ASTC_8x6_SRGB_BLOCK,
|
|
|
|
VK_FORMAT_ASTC_8x6_SRGB_BLOCK,
|
|
|
|
VK_FORMAT_ASTC_6x5_UNORM_BLOCK,
|
|
|
|
VK_FORMAT_ASTC_6x5_UNORM_BLOCK,
|
|
|
|
VK_FORMAT_ASTC_6x5_SRGB_BLOCK,
|
|
|
|
VK_FORMAT_ASTC_6x5_SRGB_BLOCK,
|
|
|
|
VK_FORMAT_E5B9G9R9_UFLOAT_PACK32};
|
|
|
|
VK_FORMAT_E5B9G9R9_UFLOAT_PACK32,
|
|
|
|
|
|
|
|
};
|
|
|
|
std::unordered_map<VkFormat, VkFormatProperties> format_properties;
|
|
|
|
std::unordered_map<VkFormat, VkFormatProperties> format_properties;
|
|
|
|
for (const auto format : formats) {
|
|
|
|
for (const auto format : formats) {
|
|
|
|
format_properties.emplace(format, physical.GetFormatProperties(format));
|
|
|
|
format_properties.emplace(format, physical.GetFormatProperties(format));
|
|
|
|