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

Function RestrictToEvent

layers/sync/sync_op.cpp:725–730  ·  view source on GitHub ↗

Need to restrict to only valid exec and access scope for this event

Source from the content-addressed store, hash-verified

723
724// Need to restrict to only valid exec and access scope for this event
725static SyncBarrier RestrictToEvent(const SyncBarrier& barrier, const SyncEventState& sync_event) {
726 SyncBarrier result = barrier;
727 result.src_exec_scope.exec_scope = sync_event.scope.exec_scope & barrier.src_exec_scope.exec_scope;
728 result.src_access_scope = sync_event.scope.stage_mask_accesses & barrier.src_access_scope;
729 return result;
730}
731
732void SyncOpWaitEvents::ReplayRecord(CommandExecutionContext& exec_context, ResourceUsageTag exec_tag) const {
733 // Unlike PipelineBarrier, WaitEvent is *not* limited to accesses within the current subpass (if any) and thus needs to import

Callers 1

ReplayRecordMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected