File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -2692,6 +2692,19 @@ pub unsafe extern "C" fn wgpuInstanceCreateSurface(
2692
2692
} ) )
2693
2693
}
2694
2694
2695
+ #[ no_mangle]
2696
+ pub unsafe extern "C" fn wgpuInstanceProcessEvents ( instance : native:: WGPUInstance ) {
2697
+ let instance = instance. as_ref ( ) . expect ( "invalid instance" ) ;
2698
+ let context = & instance. context ;
2699
+
2700
+ match context. poll_all_devices ( false ) {
2701
+ Ok ( _queue_empty) => ( ) ,
2702
+ Err ( cause) => {
2703
+ handle_error_fatal ( cause, "wgpuInstanceProcessEvents" ) ;
2704
+ }
2705
+ }
2706
+ }
2707
+
2695
2708
#[ no_mangle]
2696
2709
pub unsafe extern "C" fn wgpuInstanceRequestAdapter (
2697
2710
instance : native:: WGPUInstance ,
Original file line number Diff line number Diff line change @@ -112,11 +112,6 @@ pub extern "C" fn wgpuInstanceHasWGSLLanguageFeature(
112
112
unimplemented ! ( ) ;
113
113
}
114
114
115
- #[ no_mangle]
116
- pub extern "C" fn wgpuInstanceProcessEvents ( _instance : native:: WGPUInstance ) {
117
- unimplemented ! ( ) ;
118
- }
119
-
120
115
#[ no_mangle]
121
116
pub extern "C" fn wgpuPipelineLayoutSetLabel (
122
117
_pipeline_layout : native:: WGPUPipelineLayout ,
You can’t perform that action at this time.
0 commit comments