push_const_compat = hash_update<32>(push_const_compat, self.shprog->get_push_constants_size());
}
- constexpr unsigned graphics_mask = PipelineState::VERTEX_SETUP|PipelineState::FACE_CULL|
+ constexpr unsigned graphics_mask = PipelineState::FRAMEBUFFER|PipelineState::VERTEX_SETUP|PipelineState::FACE_CULL|
PipelineState::DEPTH_TEST|PipelineState::STENCIL_TEST|PipelineState::BLEND|PipelineState::PRIMITIVE_TYPE;
unsigned pipeline_mask = PipelineState::SHPROG;
if(!self.shprog->is_compute())
}
result = hash_round<64>(result, format.get_samples());
+ if(format.get_samples()>1)
+ result = hash_round<64>(result, self.blend.alpha_to_coverage);
if(self.depth_test.enabled)
{
const FrameFormat &format = self.framebuffer->get_format();
RenderPass render_pass;
render_pass.framebuffer = self.framebuffer;
+ render_pass.to_present = self.framebuffer->is_presentable();
render_pass.update(device);
unsigned n_color_attachments = 0;
multisample_info->sampleShadingEnable = VK_FALSE;
multisample_info->minSampleShading = 1.0f;
multisample_info->pSampleMask = 0;
- multisample_info->alphaToCoverageEnable = VK_FALSE;
+ multisample_info->alphaToCoverageEnable = (format.get_samples()>1 && self.blend.alpha_to_coverage ? VK_TRUE : VK_FALSE);
multisample_info->alphaToOneEnable = VK_FALSE;
depth_stencil_info->sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO;