Returns true if [x, x + x_size) and [y, y + y_size) overlap
| 123 | |
| 124 | // Returns true if [x, x + x_size) and [y, y + y_size) overlap |
| 125 | bool RangesIntersect(int64_t x, uint64_t x_size, int64_t y, uint64_t y_size) { |
| 126 | auto intersection = GetRangeIntersection(x, x_size, y, y_size); |
| 127 | return intersection.non_empty(); |
| 128 | } |
| 129 | |
| 130 | // Implements the vkspec.html#formats-size-compatibility section of the spec |
| 131 | bool AreFormatsSizeCompatible(VkFormat a, VkFormat b, VkImageAspectFlags aspect_mask) { |
no test coverage detected