menu
ComputeStreamBinding
import { ComputeStreamBinding } from "destack:compute/binding";
Compute stream binding family.
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): DeviceReturn the device that owns
stream.default(device: &'a readonly Device): StreamReturn the default stream for
device.create(device: &'a readonly Device): StreamCreate a new stream on
device.isComplete(stream: &'a readonly Stream): booleanReturn whether all queued stream work has completed.
wait(stream: &'a Stream, event: &'b readonly Event): voidMake future work on
streamwait forevent.synchronize(stream: &'a readonly Stream): voidWait until all preceding stream work completes.