Class JCSwapchainSubmitInfo
java.lang.Object
com.io7m.jcoronado.utility.swapchain.JCSwapchainSubmitInfo
- All Implemented Interfaces:
JCSwapchainSubmitInfoType
The information required to submit and present a frame.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeJCSwapchainSubmitInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forJCSwapchainSubmitInfo.static JCSwapchainSubmitInfocopyOf(JCSwapchainSubmitInfoType instance) Creates an immutable copy of aJCSwapchainSubmitInfoTypevalue.booleanThis instance is equal to all instances ofJCSwapchainSubmitInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:commandBuffers,waitSemaphores,signalSemaphores.toString()Prints the immutable valueJCSwapchainSubmitInfowith attribute values.final JCSwapchainSubmitInfowithCommandBuffers(VulkanCommandBufferType... elements) Copy the current immutable object with elements that replace the content ofcommandBuffers.final JCSwapchainSubmitInfowithCommandBuffers(Iterable<? extends VulkanCommandBufferType> elements) Copy the current immutable object with elements that replace the content ofcommandBuffers.final JCSwapchainSubmitInfowithSignalSemaphores(VulkanSemaphoreSubmitInfo... elements) Copy the current immutable object with elements that replace the content ofsignalSemaphores.final JCSwapchainSubmitInfowithSignalSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Copy the current immutable object with elements that replace the content ofsignalSemaphores.final JCSwapchainSubmitInfowithWaitSemaphores(VulkanSemaphoreSubmitInfo... elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores.final JCSwapchainSubmitInfowithWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores.
-
Method Details
-
commandBuffers
- Specified by:
commandBuffersin interfaceJCSwapchainSubmitInfoType- Returns:
- The command buffers to execute
-
waitSemaphores
- Specified by:
waitSemaphoresin interfaceJCSwapchainSubmitInfoType- Returns:
- The semaphores to wait on (in addition to the swapchain's acquire semaphore)
-
signalSemaphores
- Specified by:
signalSemaphoresin interfaceJCSwapchainSubmitInfoType- Returns:
- The semaphores to signal (in addition to the swapchain's render-done semaphore)
-
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 JCSwapchainSubmitInfo withCommandBuffers(Iterable<? extends VulkanCommandBufferType> 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
-
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 JCSwapchainSubmitInfo 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
-
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 JCSwapchainSubmitInfo 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 aJCSwapchainSubmitInfoTypevalue. 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 JCSwapchainSubmitInfo instance
-
builder
Creates a builder forJCSwapchainSubmitInfo.JCSwapchainSubmitInfo.builder() .addCommandBuffers|addAllCommandBuffers(com.io7m.jcoronado.api.VulkanCommandBufferType) //
commandBufferselements .addWaitSemaphores|addAllWaitSemaphores(com.io7m.jcoronado.api.VulkanSemaphoreSubmitInfo) //waitSemaphoreselements .addSignalSemaphores|addAllSignalSemaphores(com.io7m.jcoronado.api.VulkanSemaphoreSubmitInfo) //signalSemaphoreselements .build();- Returns:
- A new JCSwapchainSubmitInfo builder
-