File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
impeller/playground/imgui Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,13 @@ bool ImGui_ImplImpeller_Init(std::shared_ptr<impeller::Context> context) {
8989 impeller::ImguiRasterFragmentShader>::
9090 MakeDefaultPipelineDescriptor (*context);
9191 desc->SetSampleCount (impeller::SampleCount::kCount4 );
92+ auto stencil = desc->GetFrontStencilAttachmentDescriptor ();
93+ if (stencil.has_value ()) {
94+ stencil->stencil_compare = impeller::CompareFunction::kAlways ;
95+ stencil->depth_stencil_pass = impeller::StencilOperation::kKeep ;
96+ desc->SetStencilAttachmentDescriptors (stencil.value ());
97+ }
98+
9299 bd->pipeline =
93100 context->GetPipelineLibrary ()->GetRenderPipeline (std::move (desc)).get ();
94101 IM_ASSERT (bd->pipeline != nullptr && " Could not create ImGui pipeline." );
You can’t perform that action at this time.
0 commit comments