Skip to main content

required_barrier

Function required_barrier 

Source
pub fn required_barrier(
    pass_a_outputs: &[BufferId],
    pass_b_inputs: &[BufferId],
) -> PipelineBarrier
Expand description

Determine the required pipeline barrier between two kernel passes.

If the output buffers of pass A overlap with the input buffers of pass B, a read-after-write barrier is needed.