Class VulkanCommandBufferCreateInfo

    • Method Detail

      • withPool

        public final VulkanCommandBufferCreateInfo withPool​(VulkanCommandPoolType value)
        Copy the current immutable object by setting a value for the pool attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for pool
        Returns:
        A modified copy of the this object
      • withLevel

        public final VulkanCommandBufferCreateInfo withLevel​(VulkanCommandBufferLevel value)
        Copy the current immutable object by setting a value for the level attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for level
        Returns:
        A modified copy of the this object
      • withCount

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

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

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

        public static VulkanCommandBufferCreateInfo of​(VulkanCommandPoolType pool,
                                                       VulkanCommandBufferLevel level,
                                                       int count)
        Construct a new immutable VulkanCommandBufferCreateInfo instance.
        Parameters:
        pool - The value for the pool attribute
        level - The value for the level attribute
        count - The value for the count attribute
        Returns:
        An immutable VulkanCommandBufferCreateInfo instance