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
- Fix typo (#143) — committed to KyleMayes/vulkanalia by KyleMayes a year ago
- Improve image create info explanation (#143) — committed to KyleMayes/vulkanalia by KyleMayes a year ago
- Fix swapchain recreation logic (#143) — committed to KyleMayes/vulkanalia by KyleMayes a year ago
- Improve buffer create info explanation (#143) — committed to KyleMayes/vulkanalia by KyleMayes a year ago
- Fix typo (#143) — committed to KyleMayes/vulkanalia by KyleMayes a year ago
- Improve image create info explanation (#143) — committed to KyleMayes/vulkanalia by KyleMayes a year ago
- Fix swapchain recreation logic (#143) — committed to KyleMayes/vulkanalia by KyleMayes a year ago
- Improve buffer create info explanation (#143) — committed to KyleMayes/vulkanalia by KyleMayes a year ago
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):
copy_bufer_to_imagetypo in texture images chapterWill start working on these this weekend, thank you again for documenting these.
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
flagsvariable is marked as being amacOSsection.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.