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§

source

fn with_device_queue_pair<F, O>(self, f: F) -> O
where F: FnOnce(&Device, &Queue) -> O,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> WithDeviceQueuePair for (&'a Device, &'a Queue)

source§

fn with_device_queue_pair<F, O>(self, f: F) -> O
where F: FnOnce(&Device, &Queue) -> O,

source§

impl<'a, 'b, T> WithDeviceQueuePair for &'a Ref<'b, T>

source§

fn with_device_queue_pair<F, O>(self, f: F) -> O
where F: FnOnce(&Device, &Queue) -> O,

Implementors§