[][src]Function web_glitz::task::sequence

pub fn sequence<A, B, Ec>(a: A, b: B) -> Sequence<A, B, Ec> where
    A: GpuTask<Ec>,
    B: GpuTask<Ec>, 

Combines task a with another task b, waiting for both tasks to complete in order.

This returns a new "sequenced" task. This sequenced task must progress its sub-tasks in order. The sequenced task will finish when both sub-tasks have finished. When it finishes, it will output a tuple (A, B) where A is this tasks output and B is task b's output.

Panics

Panics if the ContextIds of a and b are not compatible.