MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / HeapOOB

Method HeapOOB

layers/gpu_dump/gpu_dump_descriptor_heap.cpp:196–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194};
195
196void 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
211void WarnInfo::AlignmentScalarIndirect(VkDeviceAddress address, VkDeviceSize alignment) {
212 if (!IsPointerAligned(address, alignment)) {

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected