#include "vulkan_loader.h" #include #include #include #include gnInstanceFunctions loadVulkanInstanceFunctions(loaderInfo info) { return (gnInstanceFunctions){ ._gnCreateInstance = createInstance, ._gnDestroyInstance = destroyInstance, ._gnGetPhysicalDevices = getPhysicalDevices, ._gnQueueCanPresentToSurface = queueCanPresentToSurface, ._gnCreateOutputDevice = createOutputDevice, ._gnDestroyOutputDevice = destroyOutputDevice, #ifdef GN_PLATFORM_LINUX #ifdef GN_WINDOW_X11 ._gnCreateX11WindowSurface = createX11WindowSurface, #endif #ifdef GN_WINDOW_WAYLAND ._gnCreateWaylandWindowSurface, #endif #endif #ifdef GN_PLATFORM_WIN32 ._gnCreateWin32WindowSurface, #endif #ifdef GN_PLATFORM_MACOS ._gnCreateMacOSWindowSurface = createMacOSWindowSurface, #endif ._gnDestroyWindowSurface = destroyWindowSurface, ._gnGetSurfaceDetails = getSurfaceDetails }; }