Prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-11-20 01:38:17 +01:00
parent 6c61538af4
commit 35bb494d33

View File

@ -56,7 +56,7 @@ impl Renderer {
usage: wgpu::BufferUsages::UNIFORM,
});
let (pipeline, bind_group) = {
let pipeline = {
let bind_group_layout = device.create_bind_group_layout(
&wgpu::BindGroupLayoutDescriptor {
label: None,
@ -146,7 +146,10 @@ impl Renderer {
}],
});
(pipeline, bind_group)
Pipeline {
pipeline,
bind_group,
}
};
let depth_view = {
@ -174,10 +177,7 @@ impl Renderer {
surface,
device,
queue,
pipeline: Pipeline {
pipeline,
bind_group,
},
pipeline,
depth_view,
})
}