Skip to content

Commit a78828e

Browse files
committed
Added link to vkCreateInstance documentation
1 parent ec48e87 commit a78828e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sdl2/video.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,9 @@ impl Window {
11431143

11441144
/// Create a Vulkan rendering surface for a window.
11451145
///
1146-
/// The `VkInstance` must be created using a prior call to the `vkCreateInstance` function in the Vulkan library.
1146+
/// The `VkInstance` must be created using a prior call to the
1147+
/// [`vkCreateInstance`](https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCreateInstance.html)
1148+
/// function in the Vulkan library.
11471149
pub fn vulkan_create_surface(&self, instance: VkInstance) -> Result<VkSurfaceKHR, String> {
11481150
let mut surface: sys::VkSurfaceKHR = ptr::null_mut();
11491151
if unsafe { sys::SDL_Vulkan_CreateSurface(self.context.raw, instance as *mut _, &mut surface) } == sys::SDL_bool::SDL_FALSE {

0 commit comments

Comments
 (0)