| 115 | } |
| 116 | |
| 117 | VkFormat choose_blendable_format(VkPhysicalDevice physical_device, const std::vector<VkFormat> &format_priority_list) |
| 118 | { |
| 119 | for (const auto &format : format_priority_list) |
| 120 | { |
| 121 | VkFormatProperties properties; |
| 122 | vkGetPhysicalDeviceFormatProperties(physical_device, format, &properties); |
| 123 | if (properties.optimalTilingFeatures & VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT) |
| 124 | { |
| 125 | return format; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | throw std::runtime_error("No suitable blendable format could be determined"); |
| 130 | } |
| 131 | |
| 132 | void make_filters_valid(VkPhysicalDevice physical_device, |
| 133 | VkFormat format, |
no outgoing calls
no test coverage detected