Package org.lwjgl.glfw
Class GLFWVulkan
java.lang.Object
org.lwjgl.glfw.GLFWVulkan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromGLFW.getLibrary(). -
Method Summary
Modifier and TypeMethodDescriptionstatic intglfwCreateWindowSurface(VkInstance instance, long window, @Nullable VkAllocationCallbacks allocator, long[] surface) VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)static intglfwCreateWindowSurface(VkInstance instance, long window, @Nullable VkAllocationCallbacks allocator, LongBuffer surface) VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)static longglfwGetInstanceProcAddress(@Nullable VkInstance instance, CharSequence procname) GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)static longglfwGetInstanceProcAddress(@Nullable VkInstance instance, ByteBuffer procname) GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)static booleanglfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, int queuefamily) int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily)static @Nullable PointerBufferchar const ** glfwGetRequiredInstanceExtensions(uint32_t * count)static voidglfwInitVulkanLoader(long loader) void glfwInitVulkanLoader(PFN_vkGetInstanceProcAddr loader)static booleanint glfwVulkanSupported(void)static intnglfwCreateWindowSurface(long instance, long window, long allocator, long surface) VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)static longnglfwGetInstanceProcAddress(long instance, long procname) GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)static longnglfwGetRequiredInstanceExtensions(long count) char const ** glfwGetRequiredInstanceExtensions(uint32_t * count)static voidOverrides the Vulkan shared library that GLFW loads internally.static voidsetPath(FunctionProvider sharedLibrary) CallssetPath(String)with the path of the specifiedSharedLibrary.
-
Method Details
-
glfwInitVulkanLoader
public static void glfwInitVulkanLoader(long loader) void glfwInitVulkanLoader(PFN_vkGetInstanceProcAddr loader) -
glfwVulkanSupported
public static boolean glfwVulkanSupported()int glfwVulkanSupported(void) -
nglfwGetRequiredInstanceExtensions
public static long nglfwGetRequiredInstanceExtensions(long count) char const ** glfwGetRequiredInstanceExtensions(uint32_t * count) -
glfwGetRequiredInstanceExtensions
char const ** glfwGetRequiredInstanceExtensions(uint32_t * count) -
nglfwGetInstanceProcAddress
public static long nglfwGetInstanceProcAddress(long instance, long procname) GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname) -
glfwGetInstanceProcAddress
GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname) -
glfwGetInstanceProcAddress
GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname) -
glfwGetPhysicalDevicePresentationSupport
public static boolean glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, int queuefamily) int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily) -
nglfwCreateWindowSurface
public static int nglfwCreateWindowSurface(long instance, long window, long allocator, long surface) VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface) -
glfwCreateWindowSurface
public static int glfwCreateWindowSurface(VkInstance instance, long window, @Nullable VkAllocationCallbacks allocator, LongBuffer surface) VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface) -
glfwCreateWindowSurface
public static int glfwCreateWindowSurface(VkInstance instance, long window, @Nullable VkAllocationCallbacks allocator, long[] surface) VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface) -
setPath
CallssetPath(String)with the path of the specifiedSharedLibrary.Example usage:
GLFWVulkan.setPath(VK.getFunctionProvider());- Parameters:
sharedLibrary- aFunctionProviderinstance that will be cast toSharedLibrary
-
setPath
Overrides the Vulkan shared library that GLFW loads internally.This is useful when there's a mismatch between the shared libraries loaded by LWJGL and GLFW.
This method must be called before GLFW initializes Vulkan. The override is available only in the default GLFW build bundled with LWJGL. Using the override with a custom GLFW build will produce a warning in
DEBUGmode (but not an error).- Parameters:
path- the Vulkan shared library path, ornullto remove the override.
-