Class VulkanSpecializationMapEntry

    • Method Detail

      • offset

        public long offset()
        Specified by:
        offset in interface VulkanSpecializationMapEntryType
        Returns:
        The byte offset of the specialization constant value within the supplied data buffer.
      • size

        public long size()
        Specified by:
        size in interface VulkanSpecializationMapEntryType
        Returns:
        The byte size of the specialization constant value within the supplied data buffer.
      • withConstantID

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

        public final VulkanSpecializationMapEntry 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
      • withSize

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

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

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

        public static VulkanSpecializationMapEntry of​(int constantID,
                                                      long offset,
                                                      long size)
        Construct a new immutable VulkanSpecializationMapEntry instance.
        Parameters:
        constantID - The value for the constantID attribute
        offset - The value for the offset attribute
        size - The value for the size attribute
        Returns:
        An immutable VulkanSpecializationMapEntry instance