Class VkDevice

  • All Implemented Interfaces:
    Pointer

    public class VkDevice
    extends Pointer.Default
    Wraps a Vulkan device dispatchable handle.
    • 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.