File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff line change 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 } ] ,
You can’t perform that action at this time.
0 commit comments