| 194 | }; |
| 195 | |
| 196 | void WarnInfo::HeapOOB(VkDeviceSize offset, bool from_sampler) { |
| 197 | if (from_sampler) { |
| 198 | if (offset > dump.sampler_range.size()) { |
| 199 | ss << new_bullet_line |
| 200 | << "[WARNING] OUT OF BOUNDS - descriptor not in sampler heap and any access to this descriptor will be invalid"; |
| 201 | } |
| 202 | } else { |
| 203 | if (offset > dump.heap_range.size()) { |
| 204 | ss << new_bullet_line |
| 205 | << "[WARNING] OUT OF BOUNDS - descriptor not in resource heap and any access to this descriptor will be " |
| 206 | "invalid"; |
| 207 | } |
| 208 | } |
| 209 | }; |
| 210 | |
| 211 | void WarnInfo::AlignmentScalarIndirect(VkDeviceAddress address, VkDeviceSize alignment) { |
| 212 | if (!IsPointerAligned(address, alignment)) { |
no test coverage detected