Working example
This commit is contained in:
15
sdl3/sdl3_vulkan.odin
Normal file
15
sdl3/sdl3_vulkan.odin
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