Class VulkanPhysicalDeviceProperties

    • Method Detail

      • withName

        public final VulkanPhysicalDeviceProperties withName​(java.lang.String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for name
        Returns:
        A modified copy of the this object
      • withType

        public final VulkanPhysicalDeviceProperties withType​(VulkanPhysicalDevicePropertiesType.Type value)
        Copy the current immutable object by setting a value for the type attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for type
        Returns:
        A modified copy of the this object
      • withId

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

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

        public final VulkanPhysicalDeviceProperties withApiVersion​(VulkanVersion value)
        Copy the current immutable object by setting a value for the apiVersion attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for apiVersion
        Returns:
        A modified copy of the this object
      • withDriverVersion

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

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanPhysicalDeviceProperties 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: name, type, id, vendorId, apiVersion, driverVersion.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanPhysicalDeviceProperties of​(java.lang.String name,
                                                        VulkanPhysicalDevicePropertiesType.Type type,
                                                        int id,
                                                        int vendorId,
                                                        VulkanVersion apiVersion,
                                                        VulkanVersion driverVersion)
        Construct a new immutable VulkanPhysicalDeviceProperties instance.
        Parameters:
        name - The value for the name attribute
        type - The value for the type attribute
        id - The value for the id attribute
        vendorId - The value for the vendorId attribute
        apiVersion - The value for the apiVersion attribute
        driverVersion - The value for the driverVersion attribute
        Returns:
        An immutable VulkanPhysicalDeviceProperties instance