aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-02-07 08:37:33 +0000
committergingerBill <gingerBill@users.noreply.github.com>2025-02-07 08:37:33 +0000
commit3bf475deaf2ed51235d7b7f4130f7afca7abca07 (patch)
tree05af0514bf414352b458d8a604652d09424af70c
parentd1f2820ff5dc9f24c1b8d317ef7e29dce64652ed (diff)
Add sdl3_vulkan.odin
-rw-r--r--vendor/sdl3/sdl3_main.odin1
-rw-r--r--vendor/sdl3/sdl3_vulkan.odin15
2 files changed, 15 insertions, 1 deletions
diff --git a/vendor/sdl3/sdl3_main.odin b/vendor/sdl3/sdl3_main.odin
index c02a0570d..49b3f2242 100644
--- a/vendor/sdl3/sdl3_main.odin
+++ b/vendor/sdl3/sdl3_main.odin
@@ -17,5 +17,4 @@ foreign lib {
RegisterApp :: proc(name: cstring, style: Uint32, hInst: rawptr) -> bool ---
UnregisterApp :: proc() ---
GDKSuspendComplete :: proc() ---
-
} \ No newline at end of file
diff --git a/vendor/sdl3/sdl3_vulkan.odin b/vendor/sdl3/sdl3_vulkan.odin
new file mode 100644
index 000000000..c3d6e0d40
--- /dev/null
+++ b/vendor/sdl3/sdl3_vulkan.odin
@@ -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 ---
+
+} \ No newline at end of file