I copy pasted the code in this vulkan tutorial to try to take it apart and understand the Vulkan API. However I am having trouble getting it to run without errors.
The code does run as expected if I disable validation. However if validation is enabled I get:
validation layer: SPIR-V module not valid: Codesize must be a multiple of 4 but is 421. The Vulkan spec states: If pCode points to SPIR-V code, codeSize must be a multiple of 4 (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-01376
Which if I understrand things correctly is one of the LunarSDK validation checks.
So I think that I must ask for a vulkan extension to handle glsl shaders instead of Spir-v but I am not sure how to do that as this is my first time handling the API and I don't know what code I am looking for. I tried reading the tutorial and the documentation but I cannot find how to fix it.