diff options
author | 2024-04-07 08:48:27 +0200 | |
---|---|---|
committer | 2024-04-07 08:48:27 +0200 | |
commit | 67716720875368ac4ab2354bcea026a4fadbb469 (patch) | |
tree | 5256124e95ba2f9f5a2c20dad469ba648098fa01 /benches | |
parent | 5ffea8ddef1b966286c14a3294f501201d9edc70 (diff) | |
download | iced-67716720875368ac4ab2354bcea026a4fadbb469.tar.gz iced-67716720875368ac4ab2354bcea026a4fadbb469.tar.bz2 iced-67716720875368ac4ab2354bcea026a4fadbb469.zip |
Wait for submission in `wgpu` benchmark
Diffstat (limited to 'benches')
-rw-r--r-- | benches/wgpu.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/benches/wgpu.rs b/benches/wgpu.rs index c8d38dc9..47e3f7cc 100644 --- a/benches/wgpu.rs +++ b/benches/wgpu.rs @@ -127,7 +127,9 @@ fn benchmark<'a>( &[], ); - engine.submit(&queue, encoder); + let submission = engine.submit(&queue, encoder); + + let _ = device.poll(wgpu::Maintain::WaitForSubmissionIndex(submission)); }); } |