Stream#
-
typedef struct mlx_stream_ mlx_stream#
A MLX stream object.
-
mlx_stream mlx_stream_new()#
Returns a new empty stream.
-
mlx_stream mlx_stream_new_device(mlx_device dev)#
Returns a new stream on a device.
-
int mlx_stream_set(mlx_stream *stream, const mlx_stream src)#
Set stream to provided src stream.
-
int mlx_stream_free(mlx_stream stream)#
Free a stream.
-
int mlx_stream_tostring(mlx_string *str, mlx_stream stream)#
Get stream description.
-
bool mlx_stream_equal(mlx_stream lhs, mlx_stream rhs)#
Check if streams are the same.
-
int mlx_stream_get_device(mlx_device *dev, mlx_stream stream)#
Return the device of the stream.
-
int mlx_stream_get_index(int *index, mlx_stream stream)#
Return the index of the stream.
-
int mlx_synchronize(mlx_stream stream)#
Synchronize with the provided stream.
-
int mlx_get_default_stream(mlx_stream *stream, mlx_device dev)#
Returns the default stream on the given device.
-
int mlx_set_default_stream(mlx_stream stream)#
Set default stream.
-
mlx_stream mlx_default_cpu_stream_new()#
Returns the current default CPU stream.
-
mlx_stream mlx_default_gpu_stream_new()#
Returns the current default GPU stream.
-
struct mlx_stream_#
- #include <stream.h>
A MLX stream object.