mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
12 lines
280 B
Rust
12 lines
280 B
Rust
use crate::TestingContext;
|
|
|
|
impl TestingContext {
|
|
/// Utility to allow future asynchronous polling.
|
|
pub async fn async_poll(
|
|
&self,
|
|
poll_type: wgpu::PollType,
|
|
) -> Result<wgpu::PollStatus, wgpu::PollError> {
|
|
self.device.poll(poll_type)
|
|
}
|
|
}
|