mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Added link to vkCreateInstance documentation
This commit is contained in:
+3
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user