Skip to content

Commit

Permalink
Correct SubpassContents to reflect previous code
Browse files Browse the repository at this point in the history
The call to `cmd_begin_render_pass` is changed from `vk::SubpassContents::INLINE` to `vk::SubpassContents::SECONDARY_COMMAND_BUFFERS` earlier on the tutorial page, so reflect that change here.
  • Loading branch information
dariuswiles authored and KyleMayes committed Sep 27, 2023
1 parent a9eca04 commit 675b094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorial/book/src/dynamic/secondary_command_buffers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 675b094

Please sign in to comment.