mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Update wgpu to 26 and wasm-bindgen to 0.2.100 (#7540)
Co-authored-by: TÖRÖK Attila <torokati44@gmail.com> Co-authored-by: Andreas Reich <r_andreas2@web.de>
This commit is contained in:
@@ -236,6 +236,7 @@ impl WebPainter for WebPainterWgpu {
|
||||
}),
|
||||
store: wgpu::StoreOp::Store,
|
||||
},
|
||||
depth_slice: None,
|
||||
})],
|
||||
depth_stencil_attachment: self.depth_texture_view.as_ref().map(|view| {
|
||||
wgpu::RenderPassDepthStencilAttachment {
|
||||
|
||||
@@ -160,6 +160,7 @@ impl CaptureState {
|
||||
load: wgpu::LoadOp::Clear(wgpu::Color::TRANSPARENT),
|
||||
store: StoreOp::Store,
|
||||
},
|
||||
depth_slice: None,
|
||||
})],
|
||||
depth_stencil_attachment: None,
|
||||
occlusion_query_set: None,
|
||||
|
||||
@@ -162,6 +162,7 @@ impl Default for WgpuSetupCreateNew {
|
||||
.unwrap_or(wgpu::Backends::PRIMARY | wgpu::Backends::GL),
|
||||
flags: wgpu::InstanceFlags::from_build_config().with_env(),
|
||||
backend_options: wgpu::BackendOptions::from_env_or_default(),
|
||||
memory_budget_thresholds: wgpu::MemoryBudgetThresholds::default(),
|
||||
},
|
||||
|
||||
power_preference: wgpu::PowerPreference::from_env()
|
||||
|
||||
@@ -471,6 +471,7 @@ impl Painter {
|
||||
}),
|
||||
store: wgpu::StoreOp::Store,
|
||||
},
|
||||
depth_slice: None,
|
||||
})],
|
||||
depth_stencil_attachment: self.depth_texture_view.get(&viewport_id).map(|view| {
|
||||
wgpu::RenderPassDepthStencilAttachment {
|
||||
|
||||
@@ -92,7 +92,7 @@ rfd = { version = "0.15.3", optional = true }
|
||||
|
||||
# web:
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
wasm-bindgen = "=0.2.97"
|
||||
wasm-bindgen = "=0.2.100"
|
||||
wasm-bindgen-futures.workspace = true
|
||||
web-sys.workspace = true
|
||||
|
||||
|
||||
@@ -190,6 +190,7 @@ impl crate::TestRenderer for WgpuTestRenderer {
|
||||
load: wgpu::LoadOp::Clear(wgpu::Color::TRANSPARENT),
|
||||
store: wgpu::StoreOp::Store,
|
||||
},
|
||||
depth_slice: None,
|
||||
})],
|
||||
..Default::default()
|
||||
})
|
||||
@@ -205,7 +206,7 @@ impl crate::TestRenderer for WgpuTestRenderer {
|
||||
self.render_state
|
||||
.device
|
||||
.poll(wgpu::PollType::Wait)
|
||||
.map_err(|e| format!("{e}"))?;
|
||||
.map_err(|e| format!("{e:?}"))?;
|
||||
|
||||
Ok(texture_to_image(
|
||||
&self.render_state.device,
|
||||
|
||||
Reference in New Issue
Block a user