Class VulkanSubmitInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanSubmitInfo
- All Implemented Interfaces:
VulkanSubmitInfoType
The type of Vulkan submission information.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanSubmitInfo.Builderbuilder()Creates a builder forVulkanSubmitInfo.static VulkanSubmitInfocopyOf(VulkanSubmitInfoType instance) Creates an immutable copy of aVulkanSubmitInfoTypevalue.booleanThis instance is equal to all instances ofVulkanSubmitInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:waitSemaphores,commandBuffers,signalSemaphores.toString()Prints the immutable valueVulkanSubmitInfowith attribute values.final VulkanSubmitInfowithCommandBuffers(VulkanCommandBufferSubmitInfo... elements) Copy the current immutable object with elements that replace the content ofcommandBuffers.final VulkanSubmitInfowithCommandBuffers(Iterable<? extends VulkanCommandBufferSubmitInfo> elements) Copy the current immutable object with elements that replace the content ofcommandBuffers.final VulkanSubmitInfowithSignalSemaphores(VulkanSemaphoreSubmitInfo... elements) Copy the current immutable object with elements that replace the content ofsignalSemaphores.final VulkanSubmitInfowithSignalSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Copy the current immutable object with elements that replace the content ofsignalSemaphores.final VulkanSubmitInfowithWaitSemaphores(VulkanSemaphoreSubmitInfo... elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores.final VulkanSubmitInfowithWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores.
-
Method Details
-
waitSemaphores
- Specified by:
waitSemaphoresin interfaceVulkanSubmitInfoType- Returns:
- A list of semaphores upon which to wait before the command buffers for this batch begin execution. If semaphores to wait on are provided, they define a semaphore wait operation.
-
commandBuffers
- Specified by:
commandBuffersin interfaceVulkanSubmitInfoType- Returns:
- A list of command buffers to execute in the batch.
-
signalSemaphores
- Specified by:
signalSemaphoresin interfaceVulkanSubmitInfoType- Returns:
- A list of semaphores which will be signaled when the command buffers for this batch have completed execution. If semaphores to be signaled are provided, they define a semaphore signal operation.
-
withWaitSemaphores
Copy the current immutable object with elements that replace the content ofwaitSemaphores.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withWaitSemaphores
public final VulkanSubmitInfo withWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of waitSemaphores elements to set- Returns:
- A modified copy or
thisif not changed
-
withCommandBuffers
Copy the current immutable object with elements that replace the content ofcommandBuffers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCommandBuffers
public final VulkanSubmitInfo withCommandBuffers(Iterable<? extends VulkanCommandBufferSubmitInfo> elements) Copy the current immutable object with elements that replace the content ofcommandBuffers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of commandBuffers elements to set- Returns:
- A modified copy or
thisif not changed
-
withSignalSemaphores
Copy the current immutable object with elements that replace the content ofsignalSemaphores.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSignalSemaphores
public final VulkanSubmitInfo withSignalSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Copy the current immutable object with elements that replace the content ofsignalSemaphores. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of signalSemaphores elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanSubmitInfoTypevalue. 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 VulkanSubmitInfo instance
-
builder
Creates a builder forVulkanSubmitInfo.VulkanSubmitInfo.builder() .addWaitSemaphores|addAllWaitSemaphores(VulkanSemaphoreSubmitInfo) //
waitSemaphoreselements .addCommandBuffers|addAllCommandBuffers(VulkanCommandBufferSubmitInfo) //commandBufferselements .addSignalSemaphores|addAllSignalSemaphores(VulkanSemaphoreSubmitInfo) //signalSemaphoreselements .build();- Returns:
- A new VulkanSubmitInfo builder
-