correct egui blending
This commit is contained in:
parent
e8bcaae2a7
commit
ea3c24ec46
|
@ -22,7 +22,7 @@ struct PushConstant {
|
||||||
ConstantBuffer<PushConstant> push_constant;
|
ConstantBuffer<PushConstant> push_constant;
|
||||||
|
|
||||||
[shader("vertex")]
|
[shader("vertex")]
|
||||||
VertexOut vertex(VertexIn vertex, uint draw_id : SV_DrawIndex) {
|
VertexOut vertex(VertexIn vertex, uint draw_id: SV_DrawIndex) {
|
||||||
VertexOut output;
|
VertexOut output;
|
||||||
|
|
||||||
output.position = float4(
|
output.position = float4(
|
||||||
|
|
|
@ -1996,11 +1996,15 @@ impl EguiState {
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
color_blend: Some(pipeline::ColorBlendState {
|
color_blend: Some(pipeline::ColorBlendState {
|
||||||
attachments: &[vk::PipelineColorBlendAttachmentState {
|
attachments: &[vk::PipelineColorBlendAttachmentState::default()
|
||||||
color_write_mask: vk::ColorComponentFlags::RGBA,
|
.color_write_mask(vk::ColorComponentFlags::RGBA)
|
||||||
blend_enable: 0,
|
.blend_enable(true)
|
||||||
..Default::default()
|
.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()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
rendering: Some(pipeline::RenderingState {
|
rendering: Some(pipeline::RenderingState {
|
||||||
|
|
Loading…
Reference in a new issue