Class GLFWVulkan

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

public class GLFWVulkan extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Contains the function pointers loaded from GLFW.getLibrary().
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    glfwCreateWindowSurface(org.lwjgl.vulkan.VkInstance instance, long window, @Nullable org.lwjgl.vulkan.VkAllocationCallbacks allocator, long[] surface)
    VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)
    static int
    glfwCreateWindowSurface(org.lwjgl.vulkan.VkInstance instance, long window, @Nullable org.lwjgl.vulkan.VkAllocationCallbacks allocator, LongBuffer surface)
    VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)
    static long
    glfwGetInstanceProcAddress(@Nullable org.lwjgl.vulkan.VkInstance instance, CharSequence procname)
    GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
    static long
    glfwGetInstanceProcAddress(@Nullable org.lwjgl.vulkan.VkInstance instance, ByteBuffer procname)
    GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
    static boolean
    glfwGetPhysicalDevicePresentationSupport(org.lwjgl.vulkan.VkInstance instance, org.lwjgl.vulkan.VkPhysicalDevice device, int queuefamily)
    int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily)
    static @Nullable org.lwjgl.PointerBuffer
    char const ** glfwGetRequiredInstanceExtensions(uint32_t * count)
    static void
    glfwInitVulkanLoader(long loader)
    void glfwInitVulkanLoader(PFN_vkGetInstanceProcAddr loader)
    static boolean
    int glfwVulkanSupported(void)
    static int
    nglfwCreateWindowSurface(long instance, long window, long allocator, long surface)
    VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)
    static long
    nglfwGetInstanceProcAddress(long instance, long procname)
    GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
    static long
    char const ** glfwGetRequiredInstanceExtensions(uint32_t * count)
    static void
    setPath(@Nullable String path)
    Overrides the Vulkan shared library that GLFW loads internally.
    static void
    setPath(org.lwjgl.system.FunctionProvider sharedLibrary)
    Calls setPath(String) with the path of the specified SharedLibrary.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • glfwInitVulkanLoader

      public static void glfwInitVulkanLoader(@NativeType("PFN_vkGetInstanceProcAddr") long loader)
      void glfwInitVulkanLoader(PFN_vkGetInstanceProcAddr loader)
    • glfwVulkanSupported

      @NativeType("int") public static boolean glfwVulkanSupported()
      int glfwVulkanSupported(void)
    • nglfwGetRequiredInstanceExtensions

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

      @NativeType("char const **") public static @Nullable org.lwjgl.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

      @NativeType("GLFWvkproc") public static long glfwGetInstanceProcAddress(@NativeType("VkInstance") @Nullable org.lwjgl.vulkan.VkInstance instance, @NativeType("char const *") ByteBuffer procname)
      GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
    • glfwGetInstanceProcAddress

      @NativeType("GLFWvkproc") public static long glfwGetInstanceProcAddress(@NativeType("VkInstance") @Nullable org.lwjgl.vulkan.VkInstance instance, @NativeType("char const *") CharSequence procname)
      GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
    • glfwGetPhysicalDevicePresentationSupport

      @NativeType("int") public static boolean glfwGetPhysicalDevicePresentationSupport(org.lwjgl.vulkan.VkInstance instance, org.lwjgl.vulkan.VkPhysicalDevice device, @NativeType("uint32_t") 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

      @NativeType("VkResult") public static int glfwCreateWindowSurface(org.lwjgl.vulkan.VkInstance instance, @NativeType("GLFWwindow *") long window, @NativeType("VkAllocationCallbacks const *") @Nullable org.lwjgl.vulkan.VkAllocationCallbacks allocator, @NativeType("VkSurfaceKHR *") LongBuffer surface)
      VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)
    • glfwCreateWindowSurface

      @NativeType("VkResult") public static int glfwCreateWindowSurface(org.lwjgl.vulkan.VkInstance instance, @NativeType("GLFWwindow *") long window, @NativeType("VkAllocationCallbacks const *") @Nullable org.lwjgl.vulkan.VkAllocationCallbacks allocator, @NativeType("VkSurfaceKHR *") long[] surface)
      VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)
    • setPath

      public static void setPath(org.lwjgl.system.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.