blurrypiano / littleVulkanEngine

Code repo for video tutorial series teaching Vulkan and computer graphics
MIT License
829 stars 147 forks source link

[FEEDBACK] Tutorial 07 : Brendan Galea #19

Closed yeokaiwei closed 2 years ago

yeokaiwei commented 2 years ago

I felt that reporting this would help other developers who might run into the same issue with undecipherable errors. The code will build and run with no error reported. However, mid-way you will run into the error in the attached image.

If you accidentally leave attributeDescriptions ie 2 instead of 1, std::vector<VkVertexInputAttributeDescription> attributeDescriptions(1); std::vector<VkVertexInputAttributeDescription> attributeDescriptions(2);

you will get the following undecipherable error saying that it "has triggered a breakpoint" error

The solution is obviously to set attributeDescriptions(2);

blurrypiano commented 2 years ago

thanks for mentioning it, but for something like this I think it would be better suited as a comment on the video! I'm not sure how many viewers would think to look here.