Skip to content

Commit

Permalink
vulkan: fix importing sdl.vulkan module. Fixes #607 (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon authored Nov 11, 2023
1 parent e2a0ff6 commit 26af107
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vulkan/vulkan.c.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright(C) 2021 Lars Pontoppidan. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
module sdl
module vulkan

import sdl

//
// SDL_vulkan.h
Expand Down Expand Up @@ -165,7 +167,7 @@ fn C.SDL_Vulkan_GetInstanceExtensions(window &C.SDL_Window, p_count &u32, p_name
*/
//
// See also: SDL_Vulkan_CreateSurface()
pub fn vulkan_get_instance_extensions(window &Window, p_count &u32, p_names &&char) bool {
pub fn vulkan_get_instance_extensions(window &sdl.Window, p_count &u32, p_names &&char) bool {
return C.SDL_Vulkan_GetInstanceExtensions(window, p_count, p_names)
}

Expand Down Expand Up @@ -225,6 +227,6 @@ fn C.SDL_Vulkan_GetDrawableSize(window &C.SDL_Window, w &int, h &int)
//
// See also: SDL_GetWindowSize()
// See also: SDL_CreateWindow()
pub fn vulkan_get_drawable_size(window &Window, w &int, h &int) {
pub fn vulkan_get_drawable_size(window &sdl.Window, w &int, h &int) {
C.SDL_Vulkan_GetDrawableSize(window, w, h)
}

0 comments on commit 26af107

Please sign in to comment.