Class GLFWVulkan

java.lang.Object
org.lwjgl.glfw.GLFWVulkan

public class GLFWVulkan extends Object
  • Method Details Link icon

    • glfwInitVulkanLoader Link icon

      public static void glfwInitVulkanLoader(long loader)
      void glfwInitVulkanLoader(PFN_vkGetInstanceProcAddr loader)
    • glfwVulkanSupported Link icon

      public static boolean glfwVulkanSupported()
      int glfwVulkanSupported(void)
    • nglfwGetRequiredInstanceExtensions Link icon

      public static long nglfwGetRequiredInstanceExtensions(long count)
      char const ** glfwGetRequiredInstanceExtensions(uint32_t * count)
    • glfwGetRequiredInstanceExtensions Link icon

      public static @Nullable PointerBuffer glfwGetRequiredInstanceExtensions()
      char const ** glfwGetRequiredInstanceExtensions(uint32_t * count)
    • nglfwGetInstanceProcAddress Link icon

      public static long nglfwGetInstanceProcAddress(long instance, long procname)
      GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
    • glfwGetInstanceProcAddress Link icon

      public static long glfwGetInstanceProcAddress(@Nullable VkInstance instance, ByteBuffer procname)
      GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
    • glfwGetInstanceProcAddress Link icon

      public static long glfwGetInstanceProcAddress(@Nullable VkInstance instance, CharSequence procname)
      GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
    • glfwGetPhysicalDevicePresentationSupport Link icon

      public static boolean glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, int queuefamily)
      int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily)
    • nglfwCreateWindowSurface Link icon

      public static int nglfwCreateWindowSurface(long instance, long window, long allocator, long surface)
      VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)
    • glfwCreateWindowSurface Link icon

      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 Link icon

      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 Link icon

      public static void setPath(FunctionProvider sharedLibrary)
      Calls setPath(String) with the path of the specified SharedLibrary.

      Example usage: GLFWVulkan.setPath(VK.getFunctionProvider());

      Parameters:
      sharedLibrary - a FunctionProvider instance that will be cast to SharedLibrary
    • setPath Link icon

      public static void setPath(@Nullable String path)
      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 DEBUG mode (but not an error).

      Parameters:
      path - the Vulkan shared library path, or null to remove the override.