From 22c896e360d119f3dfcb208a8cc3171745b5a255 Mon Sep 17 00:00:00 2001 From: Rua Date: Thu, 12 Jul 2018 15:06:57 +0200 Subject: [PATCH] Added link to vkCreateInstance documentation --- src/sdl2/video.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index 9022a97b..c63b23b1 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -1143,7 +1143,9 @@ impl Window { /// Create a Vulkan rendering surface for a window. /// - /// The `VkInstance` must be created using a prior call to the `vkCreateInstance` function in the Vulkan library. + /// The `VkInstance` must be created using a prior call to the + /// [`vkCreateInstance`](https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCreateInstance.html) + /// function in the Vulkan library. pub fn vulkan_create_surface(&self, instance: VkInstance) -> Result { let mut surface: sys::VkSurfaceKHR = ptr::null_mut(); if unsafe { sys::SDL_Vulkan_CreateSurface(self.context.raw, instance as *mut _, &mut surface) } == sys::SDL_bool::SDL_FALSE {