pub async fn request_device_queue() -> (wgpu::Device, wgpu::Queue) {
    let instance = wgpu::Instance::new(wgpu::Backends::all());
    let backends = wgpu::util::backend_bits_from_env().unwrap_or_else(wgpu::Backends::all);
    let adapter = wgpu::util::initialize_adapter_from_env_or_default(&instance, backends, None)
        .await
        .expect("No GPU found given preference");

    // `request_device` instantiates the feature specific connection to the GPU, defining some parameters,
    //  `features` being the available features.
    adapter
        .request_device(&wgpu::DeviceDescriptor::default(), None)
        .await
        .expect("Could not create adapter for GPU device")
}
// Get a device and a queue, honoring WGPU_ADAPTER_NAME and WGPU_BACKEND environment variables
Get a device and a queue, honoring WGPU_ADAPTER_NAME and WGPU_BACKEND environment variables
Get a device and a queue honoring WGPU_ADAPTER_NAME and WGPU_BACKEND environment variables
pub async fn request_device_queue() -> (wgpu::Device, wgpu::Queue) {
    let instance = wgpu::Instance::new(wgpu::Backends::all());
    let backends = wgpu::util::backend_bits_from_env().unwrap_or_else(wgpu::Backends::all);
    let adapter = wgpu::util::initialize_adapter_from_env_or_default(&instance, backends, None)
        .await
        .expect("No GPU found given preference");
    // `request_device` instantiates the feature specific connection to the GPU, defining some parameters,
    //  `features` being the available features.
    adapter
        .request_device(&wgpu::DeviceDescriptor::default(), None)
        .await
        .expect("Could not create adapter for GPU device")
}
pub async fn request_device_queue ( ) -> ( wgpu :: Device , wgpu :: Queue ) { let instance = wgpu :: Instance :: new ( wgpu :: Backends :: all ( ) ) ; let backends = wgpu :: util :: backend_bits_from_env ( ) . unwrap_or_else ( wgpu :: Backends :: all ) ; let adapter = wgpu :: util :: initialize_adapter_from_env_or_default ( & instance , backends , None ) . await . expect ( " " ) ; // `request_device` instantiates the feature specific connection to the GPU, defining some parameters, //  `features` being the available features. adapter . request_device ( & wgpu :: DeviceDescriptor :: default ( ) , None ) . await . expect ( " " ) }
Get a device and a queue, honoring WGPU_ADAPTER_NAME and WGPU_BACKEND environment variables
Get a device and a queue honoring WGPU_ADAPTER_NAME and WGPU_BACKEND environment variables