VkPipelineShaderStageCreateInfo-pName has a value that wasn't set

Started by My Name, August 02, 2022, 11:44:34

Previous topic - Next topic

My Name

This the code for setting the entrypoint:
val shaderStageCreateInfo: VkPipelineShaderStageCreateInfo = VkPipelineShaderStageCreateInfo.calloc(stack)

An this is the error form the validation layers:
No entrypoint found named `e;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/String;�D` for stage VK_SHADER_STAGE_VERTEX_BIT. The Vulkan spec states: pName must be the name of an OpEntryPoint in module with an execution model that matches stage

The "value" of pName changes every time I run the program. Sometimes their also is an additional error:
vkCreateGraphicsPipelines: string pCreateInfos[0].pStages[0].pName contains invalid characters or is badly formed

These messages also apears for the VK_SHADER_STAGE_FRAGMENT_BIT.