You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: init.rs
    path of file: ./repos/noxfutura/bengine/src/render_core/render_context
    
    the code of the file until where you have to start completion: use super::SWAPCHAIN_FORMAT;
use wgpu::{
    Adapter, Device, DeviceDescriptor, Instance, Limits, PowerPreference, PresentMode, Queue,
    RequestAdapterOptions, Surface, SwapChain, SwapChainDescriptor, TextureUsage,
};
use winit::dpi::PhysicalSize;

/// Async function to request an adapter from WGPU
pub(crate) async fn get_adapter(instance: &Instance, surface: &Surface) -> Adapter {
    instance
        .request_adapter(&RequestAdapterOptions {
            power_preference: PowerPreference::HighPerformance,
            // Request an 
    
pub(crate) async fn get_device_and_queue(adapter: &Adapter) -> (Device, Queue) {
    adapter
        .request_device(
            &DeviceDescriptor {
                features: wgpu::Features::SAMPLED_TEXTURE_BINDING_ARRAY
                    | wgpu::Features::SAMPLED_TEXTURE_ARRAY_DYNAMIC_INDEXING
                    | wgpu::Features::UNSIZED_BINDING_ARRAY
                    | wgpu::Features::MAPPABLE_PRIMARY_BUFFERS,
                limits: Limits::default(),
                shader_validation: true,
            },
            None,
        )
        .await
        .expect("Failed to create device")
}