Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vulkan: fix importing sdl.vulkan module. Fixes #607 #614

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -115,7 +117,7 @@ fn C.SDL_Vulkan_GetInstanceExtensions(window &C.SDL_Window, p_count &u32, p_name
// NOTE This function is available in SDL 2.0.8
//
// 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 @@ -161,6 +163,6 @@ fn C.SDL_Vulkan_GetDrawableSize(window &C.SDL_Window, w &int, h &int)
// See also: SDL_GetWindowSize
// See also: SDL_CreateWindow
// See also: SDL_Vulkan_CreateSurface
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)
}
Loading