Wait for submission in wgpu benchmark
This commit is contained in:
parent
5ffea8ddef
commit
6771672087
1 changed files with 3 additions and 1 deletions
|
|
@ -127,7 +127,9 @@ fn benchmark<'a>(
|
||||||
&[],
|
&[],
|
||||||
);
|
);
|
||||||
|
|
||||||
engine.submit(&queue, encoder);
|
let submission = engine.submit(&queue, encoder);
|
||||||
|
|
||||||
|
let _ = device.poll(wgpu::Maintain::WaitForSubmissionIndex(submission));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue