summaryrefslogtreecommitdiffstats
path: root/benches
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-07 08:48:27 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-07 08:48:27 +0200
commit67716720875368ac4ab2354bcea026a4fadbb469 (patch)
tree5256124e95ba2f9f5a2c20dad469ba648098fa01 /benches
parent5ffea8ddef1b966286c14a3294f501201d9edc70 (diff)
downloadiced-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.rs4
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));
});
}