Trait nannou::wgpu::WithDeviceQueuePair
source · pub trait WithDeviceQueuePair {
// Required method
fn with_device_queue_pair<F, O>(self, f: F) -> O
where F: FnOnce(&Device, &Queue) -> O;
}
Expand description
Types that may provide access to a wgpu::Device
and an associated wgpu::Queue
for loading
a texture from an image.
Notably, implementations exist for &App
, &Window
, &wgpu::DeviceQueuePair
and (&Device, &Queue)
.
Required Methods§
fn with_device_queue_pair<F, O>(self, f: F) -> O
Object Safety§
This trait is not object safe.