mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-28 17:04:34 +00:00
Add sdl3_vulkan.odin
This commit is contained in:
1
vendor/sdl3/sdl3_main.odin
vendored
1
vendor/sdl3/sdl3_main.odin
vendored
@@ -17,5 +17,4 @@ foreign lib {
|
||||
RegisterApp :: proc(name: cstring, style: Uint32, hInst: rawptr) -> bool ---
|
||||
UnregisterApp :: proc() ---
|
||||
GDKSuspendComplete :: proc() ---
|
||||
|
||||
}
|
||||
15
vendor/sdl3/sdl3_vulkan.odin
vendored
Normal file
15
vendor/sdl3/sdl3_vulkan.odin
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package sdl3
|
||||
|
||||
import vk "vendor:vulkan"
|
||||
|
||||
@(default_calling_convention="c", link_prefix="SDL_")
|
||||
foreign lib {
|
||||
Vulkan_LoadLibrary :: proc(path: cstring) -> bool ---
|
||||
Vulkan_GetVkGetInstanceProcAddr :: proc() -> FunctionPointer ---
|
||||
Vulkan_UnloadLibrary :: proc() ---
|
||||
Vulkan_GetInstanceExtensions :: proc(count: ^Uint32) -> [^]cstring ---
|
||||
Vulkan_CreateSurface :: proc(window: ^Window, instance: vk.Instance, allocator: Maybe(^vk.AllocationCallbacks), surface: ^vk.SurfaceKHR) -> bool ---
|
||||
Vulkan_DestroySurface :: proc(instance: vk.Instance, surface: vk.SurfaceKHR, allocator: Maybe(^vk.AllocationCallbacks)) ---
|
||||
Vulkan_GetPresentationSupport :: proc(instance: vk.Instance, physicalDevice: vk.PhysicalDevice, queueFamilyIndex: Uint32) -> bool ---
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user