Contents

commit()

Submits the command buffer to run on the GPU.

Declaration

func commit()

Mentioned in

Discussion

The commit() method sends the command buffer to the MTLCommandQueue instance that owns it, which then schedules it to run on the GPU. If your app calls commit() for a command buffer that isn’t enqueued, the method effectively calls enqueue() for you.

The commit() method has several restrictions, including:

The GPU starts the command buffer after it starts any command buffers that are ahead of it in the same command queue.

See Also

Submitting a command buffer