Class VK


  • public final class VK
    extends java.lang.Object
    This 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 void create()
      Loads the Vulkan shared library, using the default library name.
      static void create​(java.lang.String libName)
      Loads the Vulkan shared library, using the specified library name.
      static void create​(org.lwjgl.system.FunctionProvider functionProvider)
      Initializes Vulkan with the specified FunctionProvider.
      static void destroy()
      Unloads the Vulkan shared library.
      static org.lwjgl.system.FunctionProvider getFunctionProvider()
      Returns the FunctionProvider for the Vulkan shared library.
      static int getInstanceVersionSupported()
      Returns a uint32_t, which is the version of Vulkan supported by instance-level functionality, encoded as described in the API Version Numbers and Semantics section.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 FunctionProvider instance 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 specified FunctionProvider. 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 the FunctionProvider for the Vulkan shared library.
      • getInstanceVersionSupported

        public static int getInstanceVersionSupported()
        Returns a uint32_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::apiVersion member.