Added link to vkCreateInstance documentation

This commit is contained in:
Rua
2018-07-12 15:06:57 +02:00
parent 83d7ba7e68
commit 22c896e360
+3 -1
View File
@@ -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<VkSurfaceKHR, String> {
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 {