Struct wgpu_test::TestingContext
source · pub struct TestingContext {
pub instance: Instance,
pub adapter: Adapter,
pub adapter_info: AdapterInfo,
pub adapter_downlevel_capabilities: DownlevelCapabilities,
pub device: Device,
pub device_features: Features,
pub device_limits: Limits,
pub queue: Queue,
}
Expand description
Parameters and resources hadned to the test function.
Fields§
§instance: Instance
§adapter: Adapter
§adapter_info: AdapterInfo
§adapter_downlevel_capabilities: DownlevelCapabilities
§device: Device
§device_features: Features
§device_limits: Limits
§queue: Queue
Implementations§
source§impl TestingContext
impl TestingContext
sourcepub async fn async_poll(&self, maintain: Maintain) -> MaintainResult
pub async fn async_poll(&self, maintain: Maintain) -> MaintainResult
Utility to allow future asynchronous polling.
Auto Trait Implementations§
impl !RefUnwindSafe for TestingContext
impl Send for TestingContext
impl Sync for TestingContext
impl Unpin for TestingContext
impl !UnwindSafe for TestingContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more