Class VulkanVertexInputBindingDescription

    • Method Detail

      • withBinding

        public final VulkanVertexInputBindingDescription 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
      • withStride

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

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

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

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

        public static VulkanVertexInputBindingDescription of​(int binding,
                                                             int stride,
                                                             VulkanVertexInputRate inputRate)
        Construct a new immutable VulkanVertexInputBindingDescription instance.
        Parameters:
        binding - The value for the binding attribute
        stride - The value for the stride attribute
        inputRate - The value for the inputRate attribute
        Returns:
        An immutable VulkanVertexInputBindingDescription instance