File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,10 @@ pub async fn create_png(
47
47
// Poll the device in a blocking manner so that our future resolves.
48
48
// In an actual application, `device.poll(...)` should
49
49
// be called in an event loop or on another thread.
50
- device. poll ( wgpu:: PollType :: Wait ) . expect ( "Failed to poll device" ) ;
51
-
50
+ device
51
+ . poll ( wgpu:: PollType :: Wait )
52
+ . expect ( "Failed to poll device" ) ;
53
+
52
54
// If a file system is available, write the buffer as a PNG
53
55
let has_file_system_available = cfg ! ( not( target_arch = "wasm32" ) ) ;
54
56
if !has_file_system_available {
@@ -127,7 +129,9 @@ fn get_texture_data(
127
129
128
130
queue. submit ( Some ( command_buffer) ) ;
129
131
130
- device. poll ( wgpu:: PollType :: Wait ) . expect ( "Failed to poll device" ) ;
132
+ device
133
+ . poll ( wgpu:: PollType :: Wait )
134
+ . expect ( "Failed to poll device" ) ;
131
135
132
136
output_buffer
133
137
}
You can’t perform that action at this time.
0 commit comments