| 41 | } |
| 42 | |
| 43 | inline uint32_t choose_image_array_layers( |
| 44 | uint32_t request_image_array_layers, |
| 45 | uint32_t max_image_array_layers) |
| 46 | { |
| 47 | request_image_array_layers = std::min(request_image_array_layers, max_image_array_layers); |
| 48 | request_image_array_layers = std::max(request_image_array_layers, 1u); |
| 49 | |
| 50 | return request_image_array_layers; |
| 51 | } |
| 52 | |
| 53 | inline VkExtent2D choose_extent( |
| 54 | VkExtent2D request_extent, |