This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,10 @@ bool ImGui_ImplImpeller_Init(
94
94
auto desc = impeller::PipelineBuilder<impeller::ImguiRasterVertexShader,
95
95
impeller::ImguiRasterFragmentShader>::
96
96
MakeDefaultPipelineDescriptor (*context);
97
- auto stencil = desc->GetFrontStencilAttachmentDescriptor ();
98
- if (stencil.has_value ()) {
99
- stencil->stencil_compare = impeller::CompareFunction::kAlways ;
100
- stencil->depth_stencil_pass = impeller::StencilOperation::kKeep ;
101
- desc->SetStencilAttachmentDescriptors (stencil.value ());
102
- }
97
+ desc->SetStencilPixelFormat (impeller::PixelFormat::kUnknown );
98
+ desc->SetStencilAttachmentDescriptors (std::nullopt);
99
+ desc->SetDepthPixelFormat (impeller::PixelFormat::kUnknown );
100
+ desc->SetDepthStencilAttachmentDescriptor (std::nullopt);
103
101
104
102
bd->pipeline =
105
103
context->GetPipelineLibrary ()->GetPipeline (std::move (desc)).Get ();
Original file line number Diff line number Diff line change @@ -135,19 +135,19 @@ PipelineDescriptor& PipelineDescriptor::SetStencilPixelFormat(
135
135
}
136
136
137
137
PipelineDescriptor& PipelineDescriptor::SetDepthStencilAttachmentDescriptor (
138
- DepthAttachmentDescriptor desc) {
138
+ std::optional< DepthAttachmentDescriptor> desc) {
139
139
depth_attachment_descriptor_ = desc;
140
140
return *this ;
141
141
}
142
142
143
143
PipelineDescriptor& PipelineDescriptor::SetStencilAttachmentDescriptors (
144
- StencilAttachmentDescriptor front_and_back) {
144
+ std::optional< StencilAttachmentDescriptor> front_and_back) {
145
145
return SetStencilAttachmentDescriptors (front_and_back, front_and_back);
146
146
}
147
147
148
148
PipelineDescriptor& PipelineDescriptor::SetStencilAttachmentDescriptors (
149
- StencilAttachmentDescriptor front,
150
- StencilAttachmentDescriptor back) {
149
+ std::optional< StencilAttachmentDescriptor> front,
150
+ std::optional< StencilAttachmentDescriptor> back) {
151
151
front_stencil_attachment_descriptor_ = front;
152
152
back_stencil_attachment_descriptor_ = back;
153
153
return *this ;
Original file line number Diff line number Diff line change @@ -71,17 +71,17 @@ class PipelineDescriptor final : public Comparable<PipelineDescriptor> {
71
71
const ColorAttachmentDescriptor* GetLegacyCompatibleColorAttachment () const ;
72
72
73
73
PipelineDescriptor& SetDepthStencilAttachmentDescriptor (
74
- DepthAttachmentDescriptor desc);
74
+ std::optional< DepthAttachmentDescriptor> desc);
75
75
76
76
std::optional<DepthAttachmentDescriptor> GetDepthStencilAttachmentDescriptor ()
77
77
const ;
78
78
79
79
PipelineDescriptor& SetStencilAttachmentDescriptors (
80
- StencilAttachmentDescriptor front_and_back);
80
+ std::optional< StencilAttachmentDescriptor> front_and_back);
81
81
82
82
PipelineDescriptor& SetStencilAttachmentDescriptors (
83
- StencilAttachmentDescriptor front,
84
- StencilAttachmentDescriptor back);
83
+ std::optional< StencilAttachmentDescriptor> front,
84
+ std::optional< StencilAttachmentDescriptor> back);
85
85
86
86
std::optional<StencilAttachmentDescriptor>
87
87
GetFrontStencilAttachmentDescriptor () const ;
You can’t perform that action at this time.
0 commit comments