diff options
-rw-r--r-- | vulkan.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -500,7 +500,8 @@ static VkRenderPass createpass(VkDevice dev, VkFormat fmt) return pass; } -static void createpipeline(struct ppln *ppln, VkDevice dev, const VkExtent2D *extent) +static void createpipeline(struct ppln *ppln, VkDevice dev, + VkRenderPass pass, const VkExtent2D *extent) { VkGraphicsPipelineCreateInfo gpcinf; VkPipelineLayoutCreateInfo plcinf; @@ -614,6 +615,10 @@ static void createpipeline(struct ppln *ppln, VkDevice dev, const VkExtent2D *ex /* .blendConstants[3] = 0, */ }, .pDynamicState = NULL, + .layout = ppln->layout, + .renderPass = pass, + .subpass = 0, + .basePipelineHandle = VK_NULL_HANDLE, }; res = vkCreateGraphicsPipelines(dev, VK_NULL_HANDLE, 1, &gpcinf, NULL, &ppln->ppln); @@ -809,7 +814,7 @@ int main(void) createswp(&swp, surf, dev, qf, &sdtl); createviews(&views, dev, &swp.imgs, swp.format); pass = createpass(dev, swp.format); - createpipeline(&ppln, dev, &swp.extent); + createpipeline(&ppln, dev, pass, &swp.extent); createfbs(&fbs, dev, &views, pass, &swp.extent); cpool = createcpool(&cmdbufs, dev, qf, &fbs, pass, &swp.extent, &ppln); semavail = createsem(dev); |