Package org.lwjgl.glfw
Class GLFWVulkan
java.lang.Object
org.lwjgl.glfw.GLFWVulkan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromGLFW.getLibrary()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
glfwCreateWindowSurface
(VkInstance instance, long window, @Nullable VkAllocationCallbacks allocator, long[] surface) VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)
static int
glfwCreateWindowSurface
(VkInstance instance, long window, @Nullable VkAllocationCallbacks allocator, LongBuffer surface) VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow * window, VkAllocationCallbacks const * allocator, VkSurfaceKHR * surface)
static long
glfwGetInstanceProcAddress
(@Nullable VkInstance instance, CharSequence procname) GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
static long
glfwGetInstanceProcAddress
(@Nullable VkInstance instance, ByteBuffer procname) GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, char const * procname)
static boolean
glfwGetPhysicalDevicePresentationSupport
(VkInstance instance, VkPhysicalDevice device, int queuefamily) int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily)
static @Nullable 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
nglfwGetRequiredInstanceExtensions
(long count) char const ** glfwGetRequiredInstanceExtensions(uint32_t * count)
static void
Overrides the Vulkan shared library that GLFW loads internally.static void
setPath
(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
- aFunctionProvider
instance 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
DEBUG
mode (but not an error).- Parameters:
path
- the Vulkan shared library path, ornull
to remove the override.
-