Class VulkanFramebufferCreateInfo

    • Method Detail

      • withFlags

        public final VulkanFramebufferCreateInfo withFlags​(java.lang.Iterable<VulkanFramebufferCreateFlag> 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
      • withRenderPass

        public final VulkanFramebufferCreateInfo withRenderPass​(VulkanRenderPassType value)
        Copy the current immutable object by setting a value for the renderPass attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for renderPass
        Returns:
        A modified copy of the this object
      • withAttachments

        public final VulkanFramebufferCreateInfo withAttachments​(VulkanImageViewType... elements)
        Copy the current immutable object with elements that replace the content of attachments.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withAttachments

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

        public final VulkanFramebufferCreateInfo withWidth​(int value)
        Copy the current immutable object by setting a value for the width attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for width
        Returns:
        A modified copy of the this object
      • withHeight

        public final VulkanFramebufferCreateInfo withHeight​(int value)
        Copy the current immutable object by setting a value for the height attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for height
        Returns:
        A modified copy of the this object
      • withLayers

        public final VulkanFramebufferCreateInfo withLayers​(int value)
        Copy the current immutable object by setting a value for the layers attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for layers
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanFramebufferCreateInfo 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, renderPass, attachments, width, height, layers.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanFramebufferCreateInfo of​(java.util.Set<VulkanFramebufferCreateFlag> flags,
                                                     VulkanRenderPassType renderPass,
                                                     java.util.List<VulkanImageViewType> attachments,
                                                     int width,
                                                     int height,
                                                     int layers)
        Construct a new immutable VulkanFramebufferCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        renderPass - The value for the renderPass attribute
        attachments - The value for the attachments attribute
        width - The value for the width attribute
        height - The value for the height attribute
        layers - The value for the layers attribute
        Returns:
        An immutable VulkanFramebufferCreateInfo instance
      • of

        public static VulkanFramebufferCreateInfo of​(java.lang.Iterable<VulkanFramebufferCreateFlag> flags,
                                                     VulkanRenderPassType renderPass,
                                                     java.lang.Iterable<? extends VulkanImageViewType> attachments,
                                                     int width,
                                                     int height,
                                                     int layers)
        Construct a new immutable VulkanFramebufferCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        renderPass - The value for the renderPass attribute
        attachments - The value for the attachments attribute
        width - The value for the width attribute
        height - The value for the height attribute
        layers - The value for the layers attribute
        Returns:
        An immutable VulkanFramebufferCreateInfo instance