| 269 | } |
| 270 | |
| 271 | bool IsImageLayoutDepthOnly(VkImageLayout layout) { |
| 272 | constexpr std::array depth_only_layouts = {VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL, VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL}; |
| 273 | return std::any_of(depth_only_layouts.begin(), depth_only_layouts.end(), |
| 274 | [layout](const VkImageLayout read_only_layout) { return layout == read_only_layout; }); |
| 275 | } |
| 276 | |
| 277 | bool IsImageLayoutDepthReadOnly(VkImageLayout layout) { |
| 278 | constexpr std::array read_only_layouts = { |
no test coverage detected