endCommandBuffer()
Closes a command buffer to prepare it for submission to a command queue.
Declaration
func endCommandBuffer()Mentioned in
Discussion
Explicitly ending the command buffer allows you to reuse the MTL4CommandAllocator to start servicing other command buffers. It is an error to call commit on a command buffer previously recording before calling this method.