return;
if (dst == VK_SUBPASS_EXTERNAL) {
- pass->end_barrier.src_stage_mask = dep->srcStageMask;
- pass->end_barrier.src_access_mask = dep->srcAccessMask;
- pass->end_barrier.dst_access_mask = dep->dstAccessMask;
+ pass->end_barrier.src_stage_mask |= dep->srcStageMask;
+ pass->end_barrier.src_access_mask |= dep->srcAccessMask;
+ pass->end_barrier.dst_access_mask |= dep->dstAccessMask;
} else {
- pass->subpasses[dst].start_barrier.src_stage_mask = dep->srcStageMask;
- pass->subpasses[dst].start_barrier.src_access_mask = dep->srcAccessMask;
- pass->subpasses[dst].start_barrier.dst_access_mask = dep->dstAccessMask;
+ pass->subpasses[dst].start_barrier.src_stage_mask |= dep->srcStageMask;
+ pass->subpasses[dst].start_barrier.src_access_mask |= dep->srcAccessMask;
+ pass->subpasses[dst].start_barrier.dst_access_mask |= dep->dstAccessMask;
}
}