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

Function DoDetect

layers/sync/sync_hazard_detection.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83template <typename DetectorRunner>
84HazardResult DoDetect(const AccessContext& access_context, const AccessState& access_state, DetectorRunner detector_runner) {
85 if (access_state.next_global_barrier_index < access_context.GetGlobalBarrierCount()) {
86 AccessState new_access_state = AccessState::DefaultAccessState();
87 new_access_state.Assign(access_state);
88 access_context.ApplyGlobalBarriers(new_access_state);
89 return detector_runner(new_access_state);
90 } else {
91 return detector_runner(access_state);
92 }
93}
94
95class HazardDetector {
96 public:

Callers 10

DetectMethod · 0.85
DetectAsyncMethod · 0.85
DetectMethod · 0.85
DetectAsyncMethod · 0.85
DetectMethod · 0.85
DetectAsyncMethod · 0.85
DetectMethod · 0.85
DetectAsyncMethod · 0.85
DetectMethod · 0.85
DetectAsyncMethod · 0.85

Calls 3

GetGlobalBarrierCountMethod · 0.80
ApplyGlobalBarriersMethod · 0.80
AssignMethod · 0.45

Tested by

no test coverage detected