Class VulkanVertexInputAttributeDescription

    • Method Detail

      • withLocation

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

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

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

        public final VulkanVertexInputAttributeDescription withOffset​(int 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
      • equals

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

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

        public static VulkanVertexInputAttributeDescription of​(int location,
                                                               int binding,
                                                               VulkanFormat format,
                                                               int offset)
        Construct a new immutable VulkanVertexInputAttributeDescription instance.
        Parameters:
        location - The value for the location attribute
        binding - The value for the binding attribute
        format - The value for the format attribute
        offset - The value for the offset attribute
        Returns:
        An immutable VulkanVertexInputAttributeDescription instance