vulkanalia: Undefined variable in tutorial

Here you provide this code

let info = vk::InstanceCreateInfo::builder()
    .application_info(&application_info)
    .enabled_layer_names(&layers)
    .enabled_extension_names(&extensions)
    .flags(flags);

But the variable flags from .flags(flags); is undefined

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 18 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Chapter 37 has a big memory leak. I saw another project using Vulkanalia who also discarded this line. I am unsure of it’s purpose. self.data.secondary_command_buffers.resize_with(image_index + 1, Vec::new);

Edit : I am done with the tutorial, thank you for everything 😊

Creating a checklist so I can track this more easily (feel free to keep adding more if you keep working through the tutorial):

  • Rework how compatibility extensions (needed for macOS) are integrated into the tutorial
  • Update fixed functions chapter to make placement of pipeline layout initialization more clear
  • Investigate whether simultaneous use command buffer flag should be included in command buffers chapter
  • Remove reference to unused sparse buffer memory flag in vertex buffer creation chapter
  • Fix descriptor set layout initialization in descriptor pool chapter
  • Fix reference to sample count flags in texture images chapter
  • Fix resizing logic in swapchain recreation chapter
  • Fix copy_bufer_to_image typo in texture images chapter

Will start working on these this weekend, thank you again for documenting these.

Hopefully this helps and again sorry for lots all the report you tell me if you would prefer I open a different issue for each or whatever you’d prefer

Not a problem at all, thanks for the reports. I’m sure you aren’t the first person to have run into these issues so I’m glad to know about them (its been quite a while since I went through each chapter and checked that it all hangs together, compiles, etc.).

A single issue is fine, I hope to start fixing/clarifying these problems soon.

That’s a good point, I forgot that the section that introduces the flags variable is marked as being a macOS section.

That could definitely be improved, I see why someone would miss it now. I’ll think about how to update that section to improve it.