#include "pipelinestate_backend.h"
#include "program.h"
#include "rect.h"
+#include "renderpass.h"
#include "sampler.h"
#include "stenciltest.h"
#include "structurebuilder.h"
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);
unsigned n_color_attachments = 0;
for(FrameAttachment a: format)
pipeline_info->pDepthStencilState = depth_stencil_info;
pipeline_info->pColorBlendState = blend_info;
pipeline_info->pDynamicState = dynamic_info;
- pipeline_info->renderPass = handle_cast<::VkRenderPass>(render_pass);
+ pipeline_info->renderPass = handle_cast<::VkRenderPass>(render_pass.handle);
pipeline_info->subpass = 0;
if(self.shprog)