Class VulkanImageMemoryBarrier

    • Method Detail

      • withSourceAccessMask

        public final VulkanImageMemoryBarrier withSourceAccessMask​(VulkanAccessFlag... elements)
        Copy the current immutable object with elements that replace the content of sourceAccessMask.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withSourceAccessMask

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

        public final VulkanImageMemoryBarrier withTargetAccessMask​(VulkanAccessFlag... elements)
        Copy the current immutable object with elements that replace the content of targetAccessMask.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withTargetAccessMask

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

        public final VulkanImageMemoryBarrier withOldLayout​(VulkanImageLayout value)
        Copy the current immutable object by setting a value for the oldLayout attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for oldLayout
        Returns:
        A modified copy of the this object
      • withNewLayout

        public final VulkanImageMemoryBarrier withNewLayout​(VulkanImageLayout value)
        Copy the current immutable object by setting a value for the newLayout attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for newLayout
        Returns:
        A modified copy of the this object
      • withSourceQueueFamilyIndex

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

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

        public final VulkanImageMemoryBarrier withImage​(VulkanImageType value)
        Copy the current immutable object by setting a value for the image attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for image
        Returns:
        A modified copy of the this object
      • withSubresourceRange

        public final VulkanImageMemoryBarrier withSubresourceRange​(VulkanImageSubresourceRange value)
        Copy the current immutable object by setting a value for the subresourceRange attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for subresourceRange
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanImageMemoryBarrier 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: sourceAccessMask, targetAccessMask, oldLayout, newLayout, sourceQueueFamilyIndex, targetQueueFamilyIndex, image, subresourceRange.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanImageMemoryBarrier of​(java.util.Set<VulkanAccessFlag> sourceAccessMask,
                                                  java.util.Set<VulkanAccessFlag> targetAccessMask,
                                                  VulkanImageLayout oldLayout,
                                                  VulkanImageLayout newLayout,
                                                  int sourceQueueFamilyIndex,
                                                  int targetQueueFamilyIndex,
                                                  VulkanImageType image,
                                                  VulkanImageSubresourceRange subresourceRange)
        Construct a new immutable VulkanImageMemoryBarrier instance.
        Parameters:
        sourceAccessMask - The value for the sourceAccessMask attribute
        targetAccessMask - The value for the targetAccessMask attribute
        oldLayout - The value for the oldLayout attribute
        newLayout - The value for the newLayout attribute
        sourceQueueFamilyIndex - The value for the sourceQueueFamilyIndex attribute
        targetQueueFamilyIndex - The value for the targetQueueFamilyIndex attribute
        image - The value for the image attribute
        subresourceRange - The value for the subresourceRange attribute
        Returns:
        An immutable VulkanImageMemoryBarrier instance
      • of

        public static VulkanImageMemoryBarrier of​(java.lang.Iterable<VulkanAccessFlag> sourceAccessMask,
                                                  java.lang.Iterable<VulkanAccessFlag> targetAccessMask,
                                                  VulkanImageLayout oldLayout,
                                                  VulkanImageLayout newLayout,
                                                  int sourceQueueFamilyIndex,
                                                  int targetQueueFamilyIndex,
                                                  VulkanImageType image,
                                                  VulkanImageSubresourceRange subresourceRange)
        Construct a new immutable VulkanImageMemoryBarrier instance.
        Parameters:
        sourceAccessMask - The value for the sourceAccessMask attribute
        targetAccessMask - The value for the targetAccessMask attribute
        oldLayout - The value for the oldLayout attribute
        newLayout - The value for the newLayout attribute
        sourceQueueFamilyIndex - The value for the sourceQueueFamilyIndex attribute
        targetQueueFamilyIndex - The value for the targetQueueFamilyIndex attribute
        image - The value for the image attribute
        subresourceRange - The value for the subresourceRange attribute
        Returns:
        An immutable VulkanImageMemoryBarrier instance
      • copyOf

        public static VulkanImageMemoryBarrier copyOf​(VulkanImageMemoryBarrierType instance)
        Creates an immutable copy of a VulkanImageMemoryBarrierType 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 VulkanImageMemoryBarrier instance