Class VulkanLogicalDeviceCreateInfo

    • Method Detail

      • withFlags

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

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

        public final VulkanLogicalDeviceCreateInfo 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 VulkanLogicalDeviceCreateInfo 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
      • withEnabledExtensions

        public final VulkanLogicalDeviceCreateInfo 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 VulkanLogicalDeviceCreateInfo 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
      • withFeatures

        public final VulkanLogicalDeviceCreateInfo withFeatures​(java.util.Optional<? extends VulkanPhysicalDeviceFeatures> optional)
        Copy the current immutable object by setting an optional value for the features attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for features
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanLogicalDeviceCreateInfo 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: flags, queueCreateInfos, enabledLayers, enabledExtensions, features.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanLogicalDeviceCreateInfo of​(java.util.Set<VulkanLogicalDeviceCreateFlag> flags,
                                                       java.util.List<VulkanLogicalDeviceQueueCreateInfo> queueCreateInfos,
                                                       java.util.List<java.lang.String> enabledLayers,
                                                       java.util.List<java.lang.String> enabledExtensions,
                                                       java.util.Optional<VulkanPhysicalDeviceFeatures> features)
        Construct a new immutable VulkanLogicalDeviceCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        queueCreateInfos - The value for the queueCreateInfos attribute
        enabledLayers - The value for the enabledLayers attribute
        enabledExtensions - The value for the enabledExtensions attribute
        features - The value for the features attribute
        Returns:
        An immutable VulkanLogicalDeviceCreateInfo instance
      • of

        public static VulkanLogicalDeviceCreateInfo of​(java.lang.Iterable<VulkanLogicalDeviceCreateFlag> flags,
                                                       java.lang.Iterable<? extends VulkanLogicalDeviceQueueCreateInfo> queueCreateInfos,
                                                       java.lang.Iterable<java.lang.String> enabledLayers,
                                                       java.lang.Iterable<java.lang.String> enabledExtensions,
                                                       java.util.Optional<? extends VulkanPhysicalDeviceFeatures> features)
        Construct a new immutable VulkanLogicalDeviceCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        queueCreateInfos - The value for the queueCreateInfos attribute
        enabledLayers - The value for the enabledLayers attribute
        enabledExtensions - The value for the enabledExtensions attribute
        features - The value for the features attribute
        Returns:
        An immutable VulkanLogicalDeviceCreateInfo instance