Class GLFWVulkan

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

public class GLFWVulkan extends Object
  • 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

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

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

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

      public static long glfwGetInstanceProcAddress(@Nullable VkInstance instance, CharSequence procname)
      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

      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

      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.