File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ Bottom level categories:
106
106
#### WebGPU
107
107
108
108
- Fix setting unclipped_depth. By @atlv24 in [ #7841 ] ( https://github.com/gfx-rs/wgpu/pull/7841 )
109
+ - Implement ` on_submitted_work_done ` for WebGPU backend. By @drewcrawford in [ #7864 ] ( https://github.com/gfx-rs/wgpu/pull/7864 )
109
110
110
111
### Changes
111
112
Original file line number Diff line number Diff line change @@ -2594,8 +2594,17 @@ impl dispatch::QueueInterface for WebQueue {
2594
2594
1.0
2595
2595
}
2596
2596
2597
- fn on_submitted_work_done ( & self , _callback : dispatch:: BoxSubmittedWorkDoneCallback ) {
2598
- unimplemented ! ( "on_submitted_work_done is not yet implemented" ) ;
2597
+ fn on_submitted_work_done ( & self , callback : dispatch:: BoxSubmittedWorkDoneCallback ) {
2598
+ let promise = self . inner . on_submitted_work_done ( ) ;
2599
+ wasm_bindgen_futures:: spawn_local ( async move {
2600
+ match wasm_bindgen_futures:: JsFuture :: from ( promise) . await {
2601
+ Ok ( _) => callback ( ) ,
2602
+ Err ( error) => {
2603
+ log:: error!( "on_submitted_work_done promise failed: {:?}" , error) ;
2604
+ callback ( ) ;
2605
+ }
2606
+ }
2607
+ } ) ;
2599
2608
}
2600
2609
2601
2610
fn compact_blas (
You can’t perform that action at this time.
0 commit comments