Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.14k stars 514 forks source link

04_Conclusion.md: Clarify vkCreateGraphicsPipeline location #88

Closed ElieDeBrauwer closed 6 years ago

ElieDeBrauwer commented 6 years ago

The original text mentions to add the VkGraphicsPipelineCreateInfo & vkCreateGraphicsPipelines() at the end of createGraphicsPipeline(). However they should be called before the calls to vkDestroyshaderModule as these are referenced inside the pipelineInfo struct. If you add them at the end (after the destruction, and as the text mentions) you'll get errors like:

(null)(ERROR / SPEC): msgNum: 274780673 - Invalid ShaderModule Object 0xa. The spec valid usage text states 'module must be a valid VkShaderModule handle' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-VkPipelineShaderStageCreateInfo-module-parameter) Objects: 1 [0] 0xa, type: 15, name: (null)

Overv commented 6 years ago

Good point, thank you.