Class VulkanDescriptorBufferInfo

    • Method Detail

      • offset

        public long offset()
        Specified by:
        offset in interface VulkanDescriptorBufferInfoType
        Returns:
        The offset in bytes from the start of buffer. Access to buffer memory via this descriptor uses addressing that is relative to this starting offset.
      • range

        public long range()
        Specified by:
        range in interface VulkanDescriptorBufferInfoType
        Returns:
        The size in bytes that is used for this descriptor update, or VK_WHOLE_SIZE to use the range from offset to the end of the buffer.
      • withBuffer

        public final VulkanDescriptorBufferInfo withBuffer​(VulkanBufferType value)
        Copy the current immutable object by setting a value for the buffer attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for buffer
        Returns:
        A modified copy of the this object
      • withOffset

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

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

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanDescriptorBufferInfo 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: buffer, offset, range.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanDescriptorBufferInfo of​(VulkanBufferType buffer,
                                                    long offset,
                                                    long range)
        Construct a new immutable VulkanDescriptorBufferInfo instance.
        Parameters:
        buffer - The value for the buffer attribute
        offset - The value for the offset attribute
        range - The value for the range attribute
        Returns:
        An immutable VulkanDescriptorBufferInfo instance