Class VkDevice

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class VkDevice
    extends org.lwjgl.system.Pointer.Default
    Wraps a Vulkan device dispatchable handle.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Detail

      • VkDevice

        public VkDevice​(long handle,
                        VkPhysicalDevice physicalDevice,
                        VkDeviceCreateInfo ci)
        Creates a VkDevice instance for the specified native handle.

        The Vulkan version supported by the VkDevice will be determined by querying the VkPhysicalDeviceProperties of the specified physical device.

        Parameters:
        handle - the native VkDevice handle
        physicalDevice - the physical device used to create the VkDevice
        ci - the VkDeviceCreateInfo structure used to create the VkDevice
      • VkDevice

        public VkDevice​(long handle,
                        VkPhysicalDevice physicalDevice,
                        VkDeviceCreateInfo ci,
                        int apiVersion)
        Creates a VkDevice instance for the specified native handle.

        If apiVersion is 0, the Vulkan version supported by the VkDevice will be determined by querying the VkPhysicalDeviceProperties of the specified physical device. Otherwise, the specified apiVersion will be used.

        Parameters:
        handle - the native VkDevice handle
        physicalDevice - the physical device used to create the VkDevice
        ci - the VkDeviceCreateInfo structure used to create the VkDevice
        apiVersion - if not 0, overrides the API version supported by the device.