diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-03-01 14:00:15 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-03-01 14:43:17 +0000 |
commit | 12df3d028326a158a0b2f6cf2b34f657b2b4219d (patch) | |
tree | 913829f31f42e1ebae058243bb90d58dbdd9a17b | |
parent | 031baef75930430617fc14fe415621d7d9683859 (diff) | |
download | vulkan-12df3d028326a158a0b2f6cf2b34f657b2b4219d.tar.gz vulkan-12df3d028326a158a0b2f6cf2b34f657b2b4219d.tar.xz vulkan-12df3d028326a158a0b2f6cf2b34f657b2b4219d.zip |
pipeline: set missing create info fields
The pipeline now gets created by correctly including some missing fields.
-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); |