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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanCommandBufferBeginInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanCommandBufferBeginInfo.static VulkanCommandBufferBeginInfocopyOf(VulkanCommandBufferBeginInfoType instance) Creates an immutable copy of aVulkanCommandBufferBeginInfoTypevalue.booleanThis instance is equal to all instances ofVulkanCommandBufferBeginInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags.toString()Prints the immutable valueVulkanCommandBufferBeginInfowith attribute values.withFlags(VulkanCommandBufferUsageFlag... elements) Copy the current immutable object with elements that replace the content offlags.withFlags(Iterable<VulkanCommandBufferUsageFlag> elements) Copy the current immutable object with elements that replace the content offlags.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanCommandBufferBeginInfoType- Returns:
- Usage behaviour for the command buffer
-
withFlags
Copy the current immutable object with elements that replace the content offlags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFlags
public final VulkanCommandBufferBeginInfo withFlags(Iterable<VulkanCommandBufferUsageFlag> elements) Copy the current immutable object with elements that replace the content offlags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of flags elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanCommandBufferBeginInfoTypevalue. 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
Creates a builder forVulkanCommandBufferBeginInfo.VulkanCommandBufferBeginInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanCommandBufferUsageFlag) //
flagselements .build();- Returns:
- A new VulkanCommandBufferBeginInfo builder
-