}
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;