menu

ComputeStreamBinding

import { ComputeStreamBinding } from "destack:compute/binding";

Compute stream binding family.

language/library/src/compute/binding/stream.ds:5:53
1export interface ComputeStreamBinding {2    device(stream: &'a readonly Stream): Device;3    default(device: &'a readonly Device): Stream;4    create(device: &'a readonly Device): Stream;5    isComplete(stream: &'a readonly Stream): boolean;6    wait(stream: &'a Stream, event: &'b readonly Event): void;7    synchronize(stream: &'a readonly Stream): void;8}

Members

device(stream: &'a readonly Stream): Device

Return the device that owns stream.

default(device: &'a readonly Device): Stream

Return the default stream for device.

create(device: &'a readonly Device): Stream

Create a new stream on device.

isComplete(stream: &'a readonly Stream): boolean

Return whether all queued stream work has completed.

wait(stream: &'a Stream, event: &'b readonly Event): void

Make future work on stream wait for event.

synchronize(stream: &'a readonly Stream): void

Wait until all preceding stream work completes.