fn build_vulkan_window<F>(
        glfw: &mut glfw::Glfw,
        create_window: F,
    ) -> Result<(glfw::Window, EventReceiver)>
    where
        F: FnOnce(&mut glfw::Glfw) -> Result<(glfw::Window, EventReceiver)>,
    {
        if !glfw.vulkan_supported() {
            bail!("vulkan is not supported on this device!");
        }
        glfw.window_hint(glfw::WindowHint::ClientApi(
            glfw::ClientApiHint::NoApi,
        ));
        create_window(glfw)
    }
/// Build a vulkan-enabled glfw window, using the provided create_window
/// function.
Build a vulkan-enabled glfw window, using the provided create_window
function.
Build a vulkan - enabled glfw window using the provided create_window function .
fn build_vulkan_window<F>(
        glfw: &mut glfw::Glfw,
        create_window: F,
    ) -> Result<(glfw::Window, EventReceiver)>
    where
        F: FnOnce(&mut glfw::Glfw) -> Result<(glfw::Window, EventReceiver)>,
    {
        if !glfw.vulkan_supported() {
            bail!("vulkan is not supported on this device!");
        }
        glfw.window_hint(glfw::WindowHint::ClientApi(
            glfw::ClientApiHint::NoApi,
        ));
        create_window(glfw)
    }
fn build_vulkan_window < F > ( glfw : & mut glfw :: Glfw , create_window : F , ) -> Result < ( glfw :: Window , EventReceiver ) > where F : FnOnce ( & mut glfw :: Glfw ) -> Result < ( glfw :: Window , EventReceiver ) > , { if ! glfw . vulkan_supported ( ) { bail ! ( " " ) ; } glfw . window_hint ( glfw :: WindowHint :: ClientApi ( glfw :: ClientApiHint :: NoApi , ) ) ; create_window ( glfw ) }
Build a vulkan-enabled glfw window, using the provided create_window
function.
Build a vulkan - enabled glfw window using the provided create_window function .
glfw
&mut glfw::Glfw
create_window
F