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.- See Also:
Configuration.VULKAN_LIBRARY_NAME,Configuration.VULKAN_EXPLICIT_INIT
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreate()Loads the Vulkan shared library, using the default library name.static voidcreate(java.lang.String libName)Loads the Vulkan shared library, using the specified library name.static voidcreate(org.lwjgl.system.FunctionProvider functionProvider)Initializes Vulkan with the specifiedFunctionProvider.static voiddestroy()Unloads the Vulkan shared library.static org.lwjgl.system.FunctionProvidergetFunctionProvider()Returns theFunctionProviderfor the Vulkan shared library.static intgetInstanceVersionSupported()Returns auint32_t, which is the version of Vulkan supported by instance-level functionality, encoded as described in the API Version Numbers and Semantics section.
-
-
-
Method Detail
-
create
public static void create()
Loads the Vulkan shared library, using the default library name.- See Also:
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:
create(FunctionProvider)
-
create
public static void create(org.lwjgl.system.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 org.lwjgl.system.FunctionProvider getFunctionProvider()
Returns theFunctionProviderfor the Vulkan shared library.
-
getInstanceVersionSupported
public static int getInstanceVersionSupported()
Returns auint32_t, which is the version of Vulkan supported by instance-level functionality, encoded as described in the API Version Numbers and Semantics section.This method can be called before creating a Vulkan instance. The returned value can be used to set the
VkApplicationInfo::apiVersionmember.
-
-