Need to restrict to only valid exec and access scope for this event
| 723 | |
| 724 | // Need to restrict to only valid exec and access scope for this event |
| 725 | static 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 | |
| 732 | void 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 |