I believe there is a typo in the "Message Callback" section of this chapter. Here is the area of concern:
The extensions specified by GLFW are always required, but the debug messenger extension is conditionally added. Note that I've used the VK_EXT_DEBUG_UTILS_EXTENSION_NAME macro here which is equal to the literal string "VK_EXT_debug_utils". Using this macro lets you avoid typos.
We can now use this function in createInstance:
auto extensions = getRequiredExtensions();
createInfo.enabledExtensionCount = static_cast<uint32_t>(extensions.size());
createInfo.ppEnabledExtensionNames = extensions.data();
I believe that this is meant to be used in the "initVulkan()" function, as "createInfo" is not in scope in the "createInstance()" function. This is my code. I tried to follow the instructions as closely as possible, save for the typo:
I am still learning Vulcan, and I made this issue while following the tutorial. Please let me know if I made an error with the assumption that this was a typo. Thank you.
EDIT: I was accidentally overriding the "extensions" vector in my posted code. I corrected it by renaming the vector used for printing available extensions.
I did not notice that in the "Instance" chapter, nearly all of the code I have in the initVulkan() function actually belongs in the createInstance() function. This issue was made in error.
I believe there is a typo in the "Message Callback" section of this chapter. Here is the area of concern:
The extensions specified by GLFW are always required, but the debug messenger extension is conditionally added. Note that I've used the VK_EXT_DEBUG_UTILS_EXTENSION_NAME macro here which is equal to the literal string "VK_EXT_debug_utils". Using this macro lets you avoid typos.
We can now use this function in createInstance:
I believe that this is meant to be used in the "initVulkan()" function, as "createInfo" is not in scope in the "createInstance()" function. This is my code. I tried to follow the instructions as closely as possible, save for the typo:
I am still learning Vulcan, and I made this issue while following the tutorial. Please let me know if I made an error with the assumption that this was a typo. Thank you.
EDIT: I was accidentally overriding the "extensions" vector in my posted code. I corrected it by renaming the vector used for printing available extensions.