Package org.lwjgl.vulkan
Class VK
- java.lang.Object
-
- org.lwjgl.vulkan.VK
-
public final class VK extends java.lang.ObjectThis class loads the Vulkan library into the JVM process.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidcreate()Loads the Vulkan shared library, using the default library name.static voidcreate(FunctionProvider functionProvider)Initializes Vulkan with the specifiedFunctionProvider.static voidcreate(java.lang.String libName)Loads the Vulkan shared library, using the specified library name.static voiddestroy()Unloads the Vulkan shared library.static FunctionProvidergetFunctionProvider()Returns theFunctionProviderfor the Vulkan shared library.
-
-
-
Method Detail
-
create
public static void create()
Loads the Vulkan shared library, using the default library name.- See Also:
VK.create(String)
-
create
public static void create(java.lang.String libName)
Loads the Vulkan shared library, using the specified library name.The
FunctionProviderinstance created by this method can only be used to retrieve global commands and commands exposed statically by the Vulkan shared library.- Parameters:
libName- the shared library name- See Also:
VK.create(FunctionProvider)
-
create
public static void create(FunctionProvider functionProvider)
Initializes Vulkan with the specifiedFunctionProvider. This method can be used to implement custom Vulkan library loading.- Parameters:
functionProvider- the provider of Vulkan function addresses
-
destroy
public static void destroy()
Unloads the Vulkan shared library.
-
getFunctionProvider
public static FunctionProvider getFunctionProvider()
Returns theFunctionProviderfor the Vulkan shared library.
-
-