Skip to content

Commit ade294e

Browse files
author
Simon Niedermayr
committed
update to wgpu 25
1 parent 16141e4 commit ade294e

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/bin/render.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ async fn download_buffer<'a>(
257257
let (tx, rx) = futures_intrusive::channel::shared::oneshot_channel();
258258
slice.map_async(wgpu::MapMode::Read, move |result| tx.send(result).unwrap());
259259
device.poll(match wait_idx {
260-
Some(idx) => wgpu::Maintain::WaitForSubmissionIndex(idx),
261-
None => wgpu::Maintain::Wait,
262-
});
260+
Some(idx) => wgpu::MaintainBase::WaitForSubmissionIndex(idx),
261+
None => wgpu::MaintainBase::Wait,
262+
}).unwrap();
263263
rx.receive().await.unwrap().unwrap();
264264

265265
let view = slice.get_mapped_range();

src/bin/video.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ async fn download_buffer<T: Clone>(
286286
let buffer_slice = download_buffer.slice(..);
287287
let (tx, rx) = futures_intrusive::channel::shared::oneshot_channel();
288288
buffer_slice.map_async(wgpu::MapMode::Read, move |result| tx.send(result).unwrap());
289-
device.poll(wgpu::Maintain::Wait);
289+
device.poll(wgpu::MaintainBase::Wait).unwrap();
290290
rx.receive().await.unwrap().unwrap();
291291
let data = buffer_slice.get_mapped_range();
292292
let r;

src/renderer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl GaussianRenderer {
182182
tx.send(num_points).unwrap();
183183
},
184184
);
185-
device.poll(wgpu::Maintain::Wait);
185+
device.poll(wgpu::MaintainBase::Wait).unwrap();
186186
rx.receive().await.unwrap()
187187
};
188188
return n;

src/uniform.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ where
8585
label: Some("uniform bind group layout"),
8686
entries: &[wgpu::BindGroupLayoutEntry {
8787
binding: 0,
88-
visibility: wgpu::ShaderStages::all(),
88+
// do not change to wgpu::ShaderStages::all(), this gives an error in chrome
89+
visibility: wgpu::ShaderStages::VERTEX | wgpu::ShaderStages::FRAGMENT | wgpu::ShaderStages::COMPUTE,
8990
ty: Self::binding_type(),
9091
count: None,
9192
}],

0 commit comments

Comments
 (0)