bindGLFW_Vulkan

Undocumented in source.
version(BindGLFW_Dynamic)
@nogc nothrow
static if(glfwSupport >= GLFWSupport.glfw32)
enum bindGLFW_Vulkan = q{ extern(C) @nogc nothrow { alias pglfwGetRequiredInstanceExtensions = const(char)** function(uint* count); alias pglfwGetInstanceProcAddress = GLFWvkproc function(VkInstance instance, const(char)* procname); alias pglfwGetPhysicalDevicePresentationSupport = int function(VkInstance instance, VkPhysicalDevice device, uint queuefamily); alias pglfwCreateWindowSurface = VkResult function(VkInstance instance, GLFWwindow* window, const(VkAllocationCallbacks)* allocator, VkSurfaceKHR* surface); } __gshared { pglfwGetRequiredInstanceExtensions glfwGetRequiredInstanceExtensions; pglfwGetInstanceProcAddress glfwGetInstanceProcAddress; pglfwGetPhysicalDevicePresentationSupport glfwGetPhysicalDevicePresentationSupport; pglfwCreateWindowSurface glfwCreateWindowSurface; } @nogc nothrow bool loadGLFW_Vulkan() { import bindbc.loader.sharedlib : errorCount; if(!isGLFWLoaded) return false; auto errCount = errorCount(); bindGLFWSymbol(cast(void**)&glfwGetRequiredInstanceExtensions, "glfwGetRequiredInstanceExtensions"); bindGLFWSymbol(cast(void**)&glfwGetInstanceProcAddress, "glfwGetInstanceProcAddress"); bindGLFWSymbol(cast(void**)&glfwGetPhysicalDevicePresentationSupport, "glfwGetPhysicalDevicePresentationSupport"); bindGLFWSymbol(cast(void**)&glfwCreateWindowSurface, "glfwCreateWindowSurface"); return errorCount() == errCount; } };

Meta