const PipelineState &self = *static_cast<const PipelineState *>(this);
const FrameFormat &format = self.framebuffer->get_format();
const PipelineState &self = *static_cast<const PipelineState *>(this);
const FrameFormat &format = self.framebuffer->get_format();
- VkRenderPass render_pass = device.get_pipeline_cache().get_render_pass(format, false, false, false);
+ RenderPass render_pass;
+ render_pass.framebuffer = self.framebuffer;
+ render_pass.update(device);
pipeline_info->pDepthStencilState = depth_stencil_info;
pipeline_info->pColorBlendState = blend_info;
pipeline_info->pDynamicState = dynamic_info;
pipeline_info->pDepthStencilState = depth_stencil_info;
pipeline_info->pColorBlendState = blend_info;
pipeline_info->pDynamicState = dynamic_info;