Class VulkanBufferImageCopy

    • Method Detail

      • bufferOffset

        public long bufferOffset()
        Specified by:
        bufferOffset in interface VulkanBufferImageCopyType
        Returns:
        The offset in bytes from the start of the buffer object where the image data is copied from or to.
      • bufferRowLength

        public int bufferRowLength()
        The bufferRowLength and bufferImageHeight specify in texels a subregion of a larger two- or three-dimensional image in buffer memory, and control the addressing calculations. If either of these values is zero, that aspect of the buffer memory is considered to be tightly packed according to the imageExtent.
        Specified by:
        bufferRowLength in interface VulkanBufferImageCopyType
        Returns:
        The buffer row length
      • withBufferOffset

        public final VulkanBufferImageCopy withBufferOffset​(long value)
        Copy the current immutable object by setting a value for the bufferOffset attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for bufferOffset
        Returns:
        A modified copy of the this object
      • withBufferRowLength

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

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

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

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

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

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanBufferImageCopy 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: bufferOffset, bufferRowLength, bufferImageHeight, imageSubresource, imageOffset, imageExtent.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanBufferImageCopy of​(long bufferOffset,
                                               int bufferRowLength,
                                               int bufferImageHeight,
                                               VulkanImageSubresourceLayers imageSubresource,
                                               VulkanOffset3D imageOffset,
                                               VulkanExtent3D imageExtent)
        Construct a new immutable VulkanBufferImageCopy instance.
        Parameters:
        bufferOffset - The value for the bufferOffset attribute
        bufferRowLength - The value for the bufferRowLength attribute
        bufferImageHeight - The value for the bufferImageHeight attribute
        imageSubresource - The value for the imageSubresource attribute
        imageOffset - The value for the imageOffset attribute
        imageExtent - The value for the imageExtent attribute
        Returns:
        An immutable VulkanBufferImageCopy instance
      • copyOf

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