correct egui blending

This commit is contained in:
Janis 2024-12-31 11:58:09 +01:00
parent e8bcaae2a7
commit ea3c24ec46
2 changed files with 16 additions and 12 deletions

View file

@ -1996,11 +1996,15 @@ impl EguiState {
..Default::default()
}),
color_blend: Some(pipeline::ColorBlendState {
attachments: &[vk::PipelineColorBlendAttachmentState {
color_write_mask: vk::ColorComponentFlags::RGBA,
blend_enable: 0,
..Default::default()
}],
attachments: &[vk::PipelineColorBlendAttachmentState::default()
.color_write_mask(vk::ColorComponentFlags::RGBA)
.blend_enable(true)
.color_blend_op(vk::BlendOp::ADD)
.src_color_blend_factor(vk::BlendFactor::ONE)
.dst_color_blend_factor(vk::BlendFactor::ONE_MINUS_SRC_ALPHA)
.alpha_blend_op(vk::BlendOp::ADD)
.src_alpha_blend_factor(vk::BlendFactor::ONE)
.dst_alpha_blend_factor(vk::BlendFactor::ONE_MINUS_SRC_ALPHA)],
..Default::default()
}),
rendering: Some(pipeline::RenderingState {