Class VulkanCommandBufferBeginInfo

java.lang.Object
com.io7m.jcoronado.api.VulkanCommandBufferBeginInfo
All Implemented Interfaces:
VulkanCommandBufferBeginInfoType

public final class VulkanCommandBufferBeginInfo extends Object implements VulkanCommandBufferBeginInfoType
Structure specifying parameters of a command.
See Also:
  • "VkCommandBufferBeginInfo"
  • Method Details

    • flags

      Specified by:
      flags in interface VulkanCommandBufferBeginInfoType
      Returns:
      Usage behaviour for the command buffer
    • withFlags

      public final VulkanCommandBufferBeginInfo withFlags(VulkanCommandBufferUsageFlag... 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

      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 or this if not changed
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of VulkanCommandBufferBeginInfo 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 VulkanCommandBufferBeginInfo with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

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

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