| 169 | } |
| 170 | |
| 171 | static inline VkDeviceSize SafeDivision(VkDeviceSize dividend, VkDeviceSize divisor) { |
| 172 | VkDeviceSize result = 0; |
| 173 | if (divisor != 0) { |
| 174 | result = dividend / divisor; |
| 175 | } |
| 176 | return result; |
| 177 | } |
| 178 | |
| 179 | // For spots we care if one pointer is null, or if both are not null, are the same values |
| 180 | static inline bool EqualValuesOrBothNull(const uint32_t* a, const uint32_t* b) { |
no outgoing calls
no test coverage detected