In lesson 5, the section "Querying for Presentation Support" when it talks about how to calculate presentIndex within the body of createLogicalDevice() it says:
Add a call to it in the same loop as the VK_QUEUE_GRAPHICS_BIT
There's no such loop in the code (by which I mean the code linked to at the bottom of the page, in the repo called 05_window_surface.cpp) and no such VK_QUEUE_GRAPHICS_BIT. I'm guessing that in an old version of the tutorial it used the C API and found graphicsIndex through a loop rather than the ranges:: stuff?
And then in the very next section "Creating the Presentation Queue" it has the full code for the upgraded createLogicalDevice() where it calculates presentIndex for real using different code than (briefly) mentioned above. However, even this full version of createLogicalDevice() doesn't match what's in the code. I'm looking at the bottom of the function where (in the text) it uses C++20 designated initializers inconsistently and also seems to be manually setting up the pointer structure that was obviated by the structure chain in the previous lesson.
I'm probably botching the explanation, just look at the function in the tutorial and the actual code.
In lesson 5, the section "Querying for Presentation Support" when it talks about how to calculate presentIndex within the body of createLogicalDevice() it says:
There's no such loop in the code (by which I mean the code linked to at the bottom of the page, in the repo called 05_window_surface.cpp) and no such VK_QUEUE_GRAPHICS_BIT. I'm guessing that in an old version of the tutorial it used the C API and found graphicsIndex through a loop rather than the ranges:: stuff?
And then in the very next section "Creating the Presentation Queue" it has the full code for the upgraded createLogicalDevice() where it calculates presentIndex for real using different code than (briefly) mentioned above. However, even this full version of createLogicalDevice() doesn't match what's in the code. I'm looking at the bottom of the function where (in the text) it uses C++20 designated initializers inconsistently and also seems to be manually setting up the pointer structure that was obviated by the structure chain in the previous lesson.
I'm probably botching the explanation, just look at the function in the tutorial and the actual code.