diff --git a/tutorial/book/src/dynamic/secondary_command_buffers.md b/tutorial/book/src/dynamic/secondary_command_buffers.md index 35bb5f8..48de008 100644 --- a/tutorial/book/src/dynamic/secondary_command_buffers.md +++ b/tutorial/book/src/dynamic/secondary_command_buffers.md @@ -222,7 +222,7 @@ If you run the program now, you should see the same ghostly model rotating exact unsafe fn update_command_buffer(&mut self, image_index: usize) -> Result<()> { // ... - self.device.cmd_begin_render_pass(command_buffer, &info, vk::SubpassContents::INLINE); + self.device.cmd_begin_render_pass(command_buffer, &info, vk::SubpassContents::SECONDARY_COMMAND_BUFFERS); let secondary_command_buffers = (0..4) .map(|i| self.update_secondary_command_buffer(image_index, i))