Hello Guest

VkPipelineShaderStageCreateInfo-pName has a value that wasn't set

  • 0 Replies
  • 40 Views
This the code for setting the entrypoint:
Code: [Select]
val shaderStageCreateInfo: VkPipelineShaderStageCreateInfo = VkPipelineShaderStageCreateInfo.calloc(stack)
shaderStageCreateInfo.`sType$Default`()
shaderStageCreateInfo.stage(stageFlag)
shaderStageCreateInfo.module(shaderModule.handle)
shaderStageCreateInfo.pName(stack.UTF8Safe("main")!!)

An this is the error form the validation layers:
Code: [Select]
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:
Code: [Select]
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.