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

Method RegisterSignals

layers/sync/sync_submit.cpp:83–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool SignalsUpdate::RegisterSignals(const BatchContextPtr& batch, const vvl::span<const VkSemaphoreSubmitInfo>& submit_signals) {
84 bool registered_timeline_signal = false;
85 for (const auto& submit_signal : submit_signals) {
86 if (auto semaphore_state = sync_validator_.Get<vvl::Semaphore>(submit_signal.semaphore)) {
87 if (semaphore_state->type == VK_SEMAPHORE_TYPE_BINARY) {
88 OnBinarySignal(*semaphore_state, batch, submit_signal);
89 } else {
90 registered_timeline_signal |= OnTimelineSignal(*semaphore_state, batch, submit_signal);
91 }
92 }
93 }
94 return registered_timeline_signal;
95}
96
97std::optional<SignalInfo> SignalsUpdate::OnBinaryWait(VkSemaphore semaphore) {
98 // Signal can't be registered in both lists at the same time.

Callers 2

ProcessQueueSubmitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected