demos: Initialize render pass in pipeline create
authorTony Barbour <tony@LunarG.com>
Thu, 6 Aug 2015 20:32:54 +0000 (14:32 -0600)
committerTony Barbour <tony@LunarG.com>
Thu, 6 Aug 2015 21:40:28 +0000 (15:40 -0600)
demos/cube.c
demos/tri.c

index b7879fd..f209a14 100644 (file)
@@ -1633,6 +1633,7 @@ static void demo_prepare_pipeline(struct demo *demo)
     pipeline.pViewportState      = &vp;
     pipeline.pDepthStencilState  = &ds;
     pipeline.pStages             = shaderStages;
+    pipeline.renderPass          = demo->render_pass;
 
     err = vkCreateGraphicsPipelines(demo->device, demo->pipelineCache, 1, &pipeline, &demo->pipeline);
     assert(!err);
index e7de6a1..278380e 100644 (file)
@@ -1265,6 +1265,7 @@ static void demo_prepare_pipeline(struct demo *demo)
     pipeline.pViewportState      = &vp;
     pipeline.pDepthStencilState  = &ds;
     pipeline.pStages             = shaderStages;
+    pipeline.renderPass          = demo->render_pass;
 
     memset(&pipelineCache, 0, sizeof(pipelineCache));
     pipelineCache.sType = VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO;