Class VulkanBufferCreateInfo

    • Method Detail

      • queueFamilyIndices

        public java.util.List<java.lang.Integer> queueFamilyIndices()
        Specified by:
        queueFamilyIndices in interface VulkanBufferCreateInfoType
        Returns:
        A list of queue families that will access this buffer (ignored if sharingMode is not VK_SHARING_MODE_CONCURRENT).
      • withFlags

        public final VulkanBufferCreateInfo withFlags​(VulkanBufferCreateFlag... elements)
        Copy the current immutable object with elements that replace the content of flags.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withFlags

        public final VulkanBufferCreateInfo withFlags​(java.lang.Iterable<VulkanBufferCreateFlag> elements)
        Copy the current immutable object with elements that replace the content of flags. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of flags elements to set
        Returns:
        A modified copy of this object
      • withSize

        public final VulkanBufferCreateInfo 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
      • withUsageFlags

        public final VulkanBufferCreateInfo withUsageFlags​(VulkanBufferUsageFlag... elements)
        Copy the current immutable object with elements that replace the content of usageFlags.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withUsageFlags

        public final VulkanBufferCreateInfo withUsageFlags​(java.lang.Iterable<VulkanBufferUsageFlag> elements)
        Copy the current immutable object with elements that replace the content of usageFlags. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of usageFlags elements to set
        Returns:
        A modified copy of this object
      • withSharingMode

        public final VulkanBufferCreateInfo withSharingMode​(VulkanSharingMode value)
        Copy the current immutable object by setting a value for the sharingMode attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sharingMode
        Returns:
        A modified copy of the this object
      • withQueueFamilyIndices

        public final VulkanBufferCreateInfo withQueueFamilyIndices​(int... elements)
        Copy the current immutable object with elements that replace the content of queueFamilyIndices.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withQueueFamilyIndices

        public final VulkanBufferCreateInfo withQueueFamilyIndices​(java.lang.Iterable<java.lang.Integer> elements)
        Copy the current immutable object with elements that replace the content of queueFamilyIndices. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of queueFamilyIndices elements to set
        Returns:
        A modified copy of this object
      • equals

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

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

        public static VulkanBufferCreateInfo of​(java.util.Set<VulkanBufferCreateFlag> flags,
                                                long size,
                                                java.util.Set<VulkanBufferUsageFlag> usageFlags,
                                                VulkanSharingMode sharingMode,
                                                java.util.List<java.lang.Integer> queueFamilyIndices)
        Construct a new immutable VulkanBufferCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        size - The value for the size attribute
        usageFlags - The value for the usageFlags attribute
        sharingMode - The value for the sharingMode attribute
        queueFamilyIndices - The value for the queueFamilyIndices attribute
        Returns:
        An immutable VulkanBufferCreateInfo instance
      • of

        public static VulkanBufferCreateInfo of​(java.lang.Iterable<VulkanBufferCreateFlag> flags,
                                                long size,
                                                java.lang.Iterable<VulkanBufferUsageFlag> usageFlags,
                                                VulkanSharingMode sharingMode,
                                                java.lang.Iterable<java.lang.Integer> queueFamilyIndices)
        Construct a new immutable VulkanBufferCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        size - The value for the size attribute
        usageFlags - The value for the usageFlags attribute
        sharingMode - The value for the sharingMode attribute
        queueFamilyIndices - The value for the queueFamilyIndices attribute
        Returns:
        An immutable VulkanBufferCreateInfo instance
      • copyOf

        public static VulkanBufferCreateInfo copyOf​(VulkanBufferCreateInfoType instance)
        Creates an immutable copy of a VulkanBufferCreateInfoType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable VulkanBufferCreateInfo instance