Skip to content

Wrong variable use: 'commandbuffer', in the "Rendering_and_presentation" part #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LuncyBloont opened this issue Apr 24, 2022 · 0 comments

Comments

@LuncyBloont
Copy link

There is a mistake at Drawing_a_triangle/Drawing/Rendering_and_presentation/Submitting_the_command_buffer ("https://vulkan-tutorial.com/Drawing_a_triangle/Drawing/Rendering_and_presentation"). link

submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = commandBuffer;

I think submitInfo.pCommandBuffers is a pointer of VkCommandBuffer

So it can be fixed as:

submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &commandBuffer;
@Overv Overv closed this as completed in dce8e86 Apr 25, 2022
Overv added a commit that referenced this issue Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant