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,waitStageMasks,commandBuffers,signalSemaphores.static VulkanSubmitInfoof(Iterable<? extends VulkanSemaphoreType> waitSemaphores, Iterable<? extends VulkanPipelineStageFlag> waitStageMasks, Iterable<? extends VulkanCommandBufferType> commandBuffers, Iterable<? extends VulkanSemaphoreType> signalSemaphores) Construct a new immutableVulkanSubmitInfoinstance.static VulkanSubmitInfoof(List<VulkanSemaphoreType> waitSemaphores, List<VulkanPipelineStageFlag> waitStageMasks, List<VulkanCommandBufferType> commandBuffers, List<VulkanSemaphoreType> signalSemaphores) Construct a new immutableVulkanSubmitInfoinstance.toString()Prints the immutable valueVulkanSubmitInfowith attribute values.final VulkanSubmitInfowithCommandBuffers(VulkanCommandBufferType... elements) Copy the current immutable object with elements that replace the content ofcommandBuffers.final VulkanSubmitInfowithCommandBuffers(Iterable<? extends VulkanCommandBufferType> elements) Copy the current immutable object with elements that replace the content ofcommandBuffers.final VulkanSubmitInfowithSignalSemaphores(VulkanSemaphoreType... elements) Copy the current immutable object with elements that replace the content ofsignalSemaphores.final VulkanSubmitInfowithSignalSemaphores(Iterable<? extends VulkanSemaphoreType> elements) Copy the current immutable object with elements that replace the content ofsignalSemaphores.final VulkanSubmitInfowithWaitSemaphores(VulkanSemaphoreType... elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores.final VulkanSubmitInfowithWaitSemaphores(Iterable<? extends VulkanSemaphoreType> elements) Copy the current immutable object with elements that replace the content ofwaitSemaphores.final VulkanSubmitInfowithWaitStageMasks(VulkanPipelineStageFlag... elements) Copy the current immutable object with elements that replace the content ofwaitStageMasks.final VulkanSubmitInfowithWaitStageMasks(Iterable<? extends VulkanPipelineStageFlag> elements) Copy the current immutable object with elements that replace the content ofwaitStageMasks.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.jcoronado.api.VulkanSubmitInfoType
checkPreconditions
-
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.
-
waitStageMasks
- Specified by:
waitStageMasksin interfaceVulkanSubmitInfoType- Returns:
- A list of pipeline stages at which each corresponding semaphore wait will occur.
-
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
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 of
thisobject
-
withWaitStageMasks
Copy the current immutable object with elements that replace the content ofwaitStageMasks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withWaitStageMasks
public final VulkanSubmitInfo withWaitStageMasks(Iterable<? extends VulkanPipelineStageFlag> elements) Copy the current immutable object with elements that replace the content ofwaitStageMasks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of waitStageMasks elements to set- Returns:
- A modified copy of
thisobject
-
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 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 of
thisobject
-
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 VulkanSemaphoreType> 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 of
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanSubmitInfo of(List<VulkanSemaphoreType> waitSemaphores, List<VulkanPipelineStageFlag> waitStageMasks, List<VulkanCommandBufferType> commandBuffers, List<VulkanSemaphoreType> signalSemaphores) Construct a new immutableVulkanSubmitInfoinstance.- Parameters:
waitSemaphores- The value for thewaitSemaphoresattributewaitStageMasks- The value for thewaitStageMasksattributecommandBuffers- The value for thecommandBuffersattributesignalSemaphores- The value for thesignalSemaphoresattribute- Returns:
- An immutable VulkanSubmitInfo instance
-
of
public static VulkanSubmitInfo of(Iterable<? extends VulkanSemaphoreType> waitSemaphores, Iterable<? extends VulkanPipelineStageFlag> waitStageMasks, Iterable<? extends VulkanCommandBufferType> commandBuffers, Iterable<? extends VulkanSemaphoreType> signalSemaphores) Construct a new immutableVulkanSubmitInfoinstance.- Parameters:
waitSemaphores- The value for thewaitSemaphoresattributewaitStageMasks- The value for thewaitStageMasksattributecommandBuffers- The value for thecommandBuffersattributesignalSemaphores- The value for thesignalSemaphoresattribute- Returns:
- An immutable VulkanSubmitInfo instance
-
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(com.io7m.jcoronado.api.VulkanSemaphoreType) //waitSemaphoreselements .addWaitStageMasks|addAllWaitStageMasks(com.io7m.jcoronado.api.VulkanPipelineStageFlag) //waitStageMaskselements .addCommandBuffers|addAllCommandBuffers(com.io7m.jcoronado.api.VulkanCommandBufferType) //commandBufferselements .addSignalSemaphores|addAllSignalSemaphores(com.io7m.jcoronado.api.VulkanSemaphoreType) //signalSemaphoreselements .build();- Returns:
- A new VulkanSubmitInfo builder
-