Class VulkanShaderModuleCreateInfo

    • Method Detail

      • withFlags

        public final VulkanShaderModuleCreateInfo withFlags​(java.lang.Iterable<VulkanShaderModuleCreateFlag> 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
      • withData

        public final VulkanShaderModuleCreateInfo withData​(java.nio.ByteBuffer value)
        Copy the current immutable object by setting a value for the data attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for data
        Returns:
        A modified copy of the this object
      • withSize

        public final VulkanShaderModuleCreateInfo 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
      • equals

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

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

        public static VulkanShaderModuleCreateInfo of​(java.util.Set<VulkanShaderModuleCreateFlag> flags,
                                                      java.nio.ByteBuffer data,
                                                      long size)
        Construct a new immutable VulkanShaderModuleCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        data - The value for the data attribute
        size - The value for the size attribute
        Returns:
        An immutable VulkanShaderModuleCreateInfo instance
      • of

        public static VulkanShaderModuleCreateInfo of​(java.lang.Iterable<VulkanShaderModuleCreateFlag> flags,
                                                      java.nio.ByteBuffer data,
                                                      long size)
        Construct a new immutable VulkanShaderModuleCreateInfo instance.
        Parameters:
        flags - The value for the flags attribute
        data - The value for the data attribute
        size - The value for the size attribute
        Returns:
        An immutable VulkanShaderModuleCreateInfo instance