Class VulkanQueueFamilyProperties

    • Method Detail

      • withQueueFamilyIndex

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

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

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

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

        public final VulkanQueueFamilyProperties withMinImageTransferGranularity​(VulkanExtent3D value)
        Copy the current immutable object by setting a value for the minImageTransferGranularity attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for minImageTransferGranularity
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanQueueFamilyProperties 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: queueFamilyIndex, queueCount, queueFlags, timestampValidBits, minImageTransferGranularity.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanQueueFamilyProperties of​(int queueFamilyIndex,
                                                     int queueCount,
                                                     java.util.Set<VulkanQueueFamilyPropertyFlag> queueFlags,
                                                     int timestampValidBits,
                                                     VulkanExtent3D minImageTransferGranularity)
        Construct a new immutable VulkanQueueFamilyProperties instance.
        Parameters:
        queueFamilyIndex - The value for the queueFamilyIndex attribute
        queueCount - The value for the queueCount attribute
        queueFlags - The value for the queueFlags attribute
        timestampValidBits - The value for the timestampValidBits attribute
        minImageTransferGranularity - The value for the minImageTransferGranularity attribute
        Returns:
        An immutable VulkanQueueFamilyProperties instance
      • of

        public static VulkanQueueFamilyProperties of​(int queueFamilyIndex,
                                                     int queueCount,
                                                     java.lang.Iterable<VulkanQueueFamilyPropertyFlag> queueFlags,
                                                     int timestampValidBits,
                                                     VulkanExtent3D minImageTransferGranularity)
        Construct a new immutable VulkanQueueFamilyProperties instance.
        Parameters:
        queueFamilyIndex - The value for the queueFamilyIndex attribute
        queueCount - The value for the queueCount attribute
        queueFlags - The value for the queueFlags attribute
        timestampValidBits - The value for the timestampValidBits attribute
        minImageTransferGranularity - The value for the minImageTransferGranularity attribute
        Returns:
        An immutable VulkanQueueFamilyProperties instance