mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
Add sdl3_vulkan.odin
This commit is contained in:
Vendored
-1
@@ -17,5 +17,4 @@ foreign lib {
|
|||||||
RegisterApp :: proc(name: cstring, style: Uint32, hInst: rawptr) -> bool ---
|
RegisterApp :: proc(name: cstring, style: Uint32, hInst: rawptr) -> bool ---
|
||||||
UnregisterApp :: proc() ---
|
UnregisterApp :: proc() ---
|
||||||
GDKSuspendComplete :: proc() ---
|
GDKSuspendComplete :: proc() ---
|
||||||
|
|
||||||
}
|
}
|
||||||
Vendored
+15
@@ -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