Module Metal.CommandQueue

A queue for submitting command buffers to a device. See MTLCommandQueue.

type t
val sexp_of_t : t -> Sexplib0.Sexp.t
val on_device : Device.t -> t
val on_device_with_max_buffer_count : Device.t -> int -> t

Creates a command queue with a specific maximum number of uncompleted command buffers.

val on_device_with_descriptor : Device.t -> CommandQueueDescriptor.t -> t

Creates a command queue using the specified descriptor. See newCommandQueueWithDescriptor:.

The returned OCaml value will ensure that any OCaml objects referenced by the descriptor's lifetime (e.g., for log handlers) are kept alive as long as this command queue value is alive.

val set_label : t -> string -> unit
val get_label : t -> string
val get_device : t -> Device.t