mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
* Convert Tests to Use Async Poll * Update examples/src/repeated_compute/mod.rs Co-authored-by: Andreas Reich <r_andreas2@web.de> --------- Co-authored-by: Andreas Reich <r_andreas2@web.de>
9 lines
234 B
Rust
9 lines
234 B
Rust
use crate::TestingContext;
|
|
|
|
impl TestingContext {
|
|
/// Utility to allow future asynchronous polling.
|
|
pub async fn async_poll(&self, maintain: wgpu::Maintain) -> wgpu::MaintainResult {
|
|
self.device.poll(maintain)
|
|
}
|
|
}
|