In Drawing a Triangle > Drawing > Command Buffers, the code block
commandBuffer->begin({}); is wrong as commandBuffer is not a pointer. The full code writes it as such (commandBuffer.begin({})).
Additionally, the full code listed at the end of the chapter is not up to date with everything done in the chapter (entirely missing the recordCommandBuffer() function).
In Drawing a Triangle > Drawing > Command Buffers, the code block
commandBuffer->begin({});is wrong ascommandBufferis not a pointer. The full code writes it as such (commandBuffer.begin({})).Additionally, the full code listed at the end of the chapter is not up to date with everything done in the chapter (entirely missing the
recordCommandBuffer()function).