Class VulkanSemaphoreCreateInfo

java.lang.Object
com.io7m.jcoronado.api.VulkanSemaphoreCreateInfo
All Implemented Interfaces:
VulkanSemaphoreCreateInfoType

public final class VulkanSemaphoreCreateInfo extends Object implements VulkanSemaphoreCreateInfoType
The type of Vulkan semaphore creation information.
See Also:
  • "VkSemaphoreCreateInfo"
  • Method Details

    • flags

      public Set<VulkanSemaphoreCreateFlag> flags()
      Specified by:
      flags in interface VulkanSemaphoreCreateInfoType
      Returns:
      The semaphore creation flags
    • withFlags

      public final VulkanSemaphoreCreateInfo withFlags(VulkanSemaphoreCreateFlag... 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 VulkanSemaphoreCreateInfo withFlags(Iterable<VulkanSemaphoreCreateFlag> 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
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of VulkanSemaphoreCreateInfo that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: flags.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      Construct a new immutable VulkanSemaphoreCreateInfo instance.
      Parameters:
      flags - The value for the flags attribute
      Returns:
      An immutable VulkanSemaphoreCreateInfo instance
    • of

      Construct a new immutable VulkanSemaphoreCreateInfo instance.
      Parameters:
      flags - The value for the flags attribute
      Returns:
      An immutable VulkanSemaphoreCreateInfo instance
    • copyOf

      Creates an immutable copy of a VulkanSemaphoreCreateInfoType 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 VulkanSemaphoreCreateInfo instance
    • builder

      public static VulkanSemaphoreCreateInfo.Builder builder()
      Creates a builder for VulkanSemaphoreCreateInfo.
       VulkanSemaphoreCreateInfo.builder()
          .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanSemaphoreCreateFlag) // flags elements
          .build();
       
      Returns:
      A new VulkanSemaphoreCreateInfo builder