wgpu_test/
poll.rs

1
2
3
4
5
6
7
8
9
10
11
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)
    }
}