Skip to content

Commit 868c717

Browse files
committed
pipeline managment rework
1 parent a5312f2 commit 868c717

File tree

7 files changed

+243
-257
lines changed

7 files changed

+243
-257
lines changed

src/pipelines/highlight_selected.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ impl Pipeline for HighlightSelectedPipeline {
166166
},
167167
depth_stencil: Some(wgpu::DepthStencilState {
168168
format: Texture::DEPTH_FORMAT,
169-
depth_write_enabled: true,
170-
depth_compare: wgpu::CompareFunction::Less,
169+
depth_write_enabled: false,
170+
depth_compare: wgpu::CompareFunction::Always,
171171
stencil: wgpu::StencilState::default(),
172172
bias: wgpu::DepthBiasState::default(),
173173
}),

src/pipelines/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ impl Pipeline for MainPipeline {
8989
queue: Arc<wgpu::Queue>,
9090
device: Arc<wgpu::Device>,
9191
) -> Result<(), Box<dyn std::error::Error>> {
92-
return Ok(());
93-
// todo!()
92+
Ok(())
9493
}
9594
fn init(state: &State, pipeline_manager: &PipelineManager) -> Self {
9695
let swapchain_capabilities = state.surface.get_capabilities(&state.adapter);

src/pipelines/pipeline_manager.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ impl PipelineManager {
4040
pipeline.highlight_selected_pipeline = Some(RefCell::new(HighlightSelectedPipeline::init(
4141
state, &pipeline,
4242
)));
43+
pipeline.ui_pipeline = Some(RefCell::new(UIPipeline::init(state, &pipeline)));
4344
return pipeline;
4445
}
4546
pub fn update(

0 commit comments

Comments
 (0)