Metal.CommandBufferA container for encoded commands that the GPU executes. See MTLCommandBuffer.
val sexp_of_t : t -> Sexplib0.Sexp.tval set_label : t -> string -> unitval get_label : t -> stringval get_command_queue : t -> CommandQueue.tval get_retained_references : t -> boolChecks if the buffer retains references to its resources.
val on_queue : CommandQueue.t -> tval on_queue_with_unretained_references : CommandQueue.t -> tCreates a command buffer that does not retain references to its resources.
val enqueue : t -> unitAdds the command buffer to the end of the command queue.
val commit : t -> unitCommits the command buffer for execution as soon as possible.
Registers a block to be called when the buffer is scheduled.
Registers a block to be called when the buffer finishes execution.
val wait_until_scheduled : t -> unitBlocks the calling thread until the buffer is scheduled.
val wait_until_completed : t -> unitBlocks the calling thread until the buffer finishes execution.
module Status : sig ... endThe execution status of the command buffer. See MTLCommandBufferStatus.
val get_error : t -> string optionGets the error object if the status is Error, otherwise None.
val get_gpu_start_time : t -> floatGets the host time (seconds) when the GPU started executing the buffer.
val get_gpu_end_time : t -> floatGets the host time (seconds) when the GPU finished executing the buffer.
val push_debug_group : t -> string -> unitval pop_debug_group : t -> unit