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

Method DetectHazard

layers/sync/sync_hazard_detection.cpp:305–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303};
304
305HazardResult AccessContext::DetectHazard(const vvl::Buffer& buffer, SyncAccessIndex access_index, const AccessRange& range) const {
306 if (!SimpleBinding(buffer)) {
307 return {};
308 }
309 const auto base_address = ResourceBaseAddress(buffer);
310 HazardDetector detector(access_index, *this);
311 return DetectHazardRange(detector, (range + base_address), DetectOptions::kDetectAll);
312}
313
314HazardResult AccessContext::DetectHazard(ImageRangeGen& range_gen, SyncAccessIndex current_usage) const {
315 HazardDetector detector(current_usage, *this);

Callers 4

DetectMethod · 0.45
DetectMethod · 0.45
DetectMethod · 0.45
DetectMethod · 0.45

Calls 4

SimpleBindingFunction · 0.85
ResourceBaseAddressFunction · 0.85
MakeImageRangeGenFunction · 0.85
MakeImageRangeGenMethod · 0.80

Tested by

no test coverage detected