When we don't want to record any more commands in a command buffer, we need to stop recording it.
Ending a command buffer recording operation
How to do it...
- Take the handle of a command buffer that is in a recording state (for which a recording operation was started). Store the handle in a variable of type VkCommandBuffer named command_buffer.
- Call vkEndCommandBuffer( command_buffer ) and provide the command_buffer variable.
- Make sure the recording operation was successful by checking whether the call returned a VK_SUCCESS value.
How it works...
Commands are recorded into the command buffer between the vkBeginCommandBuffer...