Class VulkanInstanceCreateInfo

    • Method Detail

      • withApplicationInfo

        public final VulkanInstanceCreateInfo withApplicationInfo​(VulkanApplicationInfo value)
        Copy the current immutable object by setting a value for the applicationInfo attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for applicationInfo
        Returns:
        A modified copy of the this object
      • withEnabledExtensions

        public final VulkanInstanceCreateInfo withEnabledExtensions​(java.lang.String... elements)
        Copy the current immutable object with elements that replace the content of enabledExtensions.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withEnabledExtensions

        public final VulkanInstanceCreateInfo withEnabledExtensions​(java.lang.Iterable<java.lang.String> elements)
        Copy the current immutable object with elements that replace the content of enabledExtensions. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of enabledExtensions elements to set
        Returns:
        A modified copy of this object
      • withEnabledLayers

        public final VulkanInstanceCreateInfo withEnabledLayers​(java.lang.String... elements)
        Copy the current immutable object with elements that replace the content of enabledLayers.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withEnabledLayers

        public final VulkanInstanceCreateInfo withEnabledLayers​(java.lang.Iterable<java.lang.String> elements)
        Copy the current immutable object with elements that replace the content of enabledLayers. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of enabledLayers elements to set
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanInstanceCreateInfo that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: applicationInfo, enabledExtensions, enabledLayers.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value VulkanInstanceCreateInfo with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • of

        public static VulkanInstanceCreateInfo of​(VulkanApplicationInfo applicationInfo,
                                                  java.util.Set<java.lang.String> enabledExtensions,
                                                  java.util.Set<java.lang.String> enabledLayers)
        Construct a new immutable VulkanInstanceCreateInfo instance.
        Parameters:
        applicationInfo - The value for the applicationInfo attribute
        enabledExtensions - The value for the enabledExtensions attribute
        enabledLayers - The value for the enabledLayers attribute
        Returns:
        An immutable VulkanInstanceCreateInfo instance
      • of

        public static VulkanInstanceCreateInfo of​(VulkanApplicationInfo applicationInfo,
                                                  java.lang.Iterable<java.lang.String> enabledExtensions,
                                                  java.lang.Iterable<java.lang.String> enabledLayers)
        Construct a new immutable VulkanInstanceCreateInfo instance.
        Parameters:
        applicationInfo - The value for the applicationInfo attribute
        enabledExtensions - The value for the enabledExtensions attribute
        enabledLayers - The value for the enabledLayers attribute
        Returns:
        An immutable VulkanInstanceCreateInfo instance
      • copyOf

        public static VulkanInstanceCreateInfo copyOf​(VulkanInstanceCreateInfoType instance)
        Creates an immutable copy of a VulkanInstanceCreateInfoType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable VulkanInstanceCreateInfo instance