Class VulkanImageBlit

  • All Implemented Interfaces:
    VulkanImageBlitType

    public final class VulkanImageBlit
    extends java.lang.Object
    implements VulkanImageBlitType
    Structure specifying an image blit operation.
    See Also:
    "VkImageBlit"
    • Method Detail

      • withSourceSubresource

        public final VulkanImageBlit withSourceSubresource​(VulkanImageSubresourceLayers value)
        Copy the current immutable object by setting a value for the sourceSubresource attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sourceSubresource
        Returns:
        A modified copy of the this object
      • withSourceOffset0

        public final VulkanImageBlit withSourceOffset0​(VulkanOffset3D value)
        Copy the current immutable object by setting a value for the sourceOffset0 attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sourceOffset0
        Returns:
        A modified copy of the this object
      • withSourceOffset1

        public final VulkanImageBlit withSourceOffset1​(VulkanOffset3D value)
        Copy the current immutable object by setting a value for the sourceOffset1 attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sourceOffset1
        Returns:
        A modified copy of the this object
      • withTargetSubresource

        public final VulkanImageBlit withTargetSubresource​(VulkanImageSubresourceLayers value)
        Copy the current immutable object by setting a value for the targetSubresource attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for targetSubresource
        Returns:
        A modified copy of the this object
      • withTargetOffset0

        public final VulkanImageBlit withTargetOffset0​(VulkanOffset3D value)
        Copy the current immutable object by setting a value for the targetOffset0 attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for targetOffset0
        Returns:
        A modified copy of the this object
      • withTargetOffset1

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

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanImageBlit 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: sourceSubresource, sourceOffset0, sourceOffset1, targetSubresource, targetOffset0, targetOffset1.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanImageBlit of​(VulkanImageSubresourceLayers sourceSubresource,
                                         VulkanOffset3D sourceOffset0,
                                         VulkanOffset3D sourceOffset1,
                                         VulkanImageSubresourceLayers targetSubresource,
                                         VulkanOffset3D targetOffset0,
                                         VulkanOffset3D targetOffset1)
        Construct a new immutable VulkanImageBlit instance.
        Parameters:
        sourceSubresource - The value for the sourceSubresource attribute
        sourceOffset0 - The value for the sourceOffset0 attribute
        sourceOffset1 - The value for the sourceOffset1 attribute
        targetSubresource - The value for the targetSubresource attribute
        targetOffset0 - The value for the targetOffset0 attribute
        targetOffset1 - The value for the targetOffset1 attribute
        Returns:
        An immutable VulkanImageBlit instance
      • copyOf

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