Class JCSwapchainSubmitInfo.Builder
java.lang.Object
com.io7m.jcoronado.utility.swapchain.JCSwapchainSubmitInfo.Builder
- Enclosing class:
JCSwapchainSubmitInfo
Builds instances of type
JCSwapchainSubmitInfo.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllCommandBuffers(Iterable<? extends VulkanCommandBufferType> elements) Adds elements tocommandBufferslist.addAllSignalSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Adds elements tosignalSemaphoreslist.addAllWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Adds elements towaitSemaphoreslist.addCommandBuffers(VulkanCommandBufferType element) Adds one element tocommandBufferslist.addCommandBuffers(VulkanCommandBufferType... elements) Adds elements tocommandBufferslist.Adds one element tosignalSemaphoreslist.addSignalSemaphores(VulkanSemaphoreSubmitInfo... elements) Adds elements tosignalSemaphoreslist.Adds one element towaitSemaphoreslist.addWaitSemaphores(VulkanSemaphoreSubmitInfo... elements) Adds elements towaitSemaphoreslist.build()Builds a newJCSwapchainSubmitInfo.from(JCSwapchainSubmitInfoType instance) Fill a builder with attribute values from the providedJCSwapchainSubmitInfoTypeinstance.setCommandBuffers(Iterable<? extends VulkanCommandBufferType> elements) Sets or replaces all elements forcommandBufferslist.setSignalSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Sets or replaces all elements forsignalSemaphoreslist.setWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Sets or replaces all elements forwaitSemaphoreslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedJCSwapchainSubmitInfoTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addCommandBuffers
Adds one element tocommandBufferslist.- Parameters:
element- A commandBuffers element- Returns:
thisbuilder for use in a chained invocation
-
addCommandBuffers
Adds elements tocommandBufferslist.- Parameters:
elements- An array of commandBuffers elements- Returns:
thisbuilder for use in a chained invocation
-
setCommandBuffers
public final JCSwapchainSubmitInfo.Builder setCommandBuffers(Iterable<? extends VulkanCommandBufferType> elements) Sets or replaces all elements forcommandBufferslist.- Parameters:
elements- An iterable of commandBuffers elements- Returns:
thisbuilder for use in a chained invocation
-
addAllCommandBuffers
public final JCSwapchainSubmitInfo.Builder addAllCommandBuffers(Iterable<? extends VulkanCommandBufferType> elements) Adds elements tocommandBufferslist.- Parameters:
elements- An iterable of commandBuffers elements- Returns:
thisbuilder for use in a chained invocation
-
addWaitSemaphores
Adds one element towaitSemaphoreslist.- Parameters:
element- A waitSemaphores element- Returns:
thisbuilder for use in a chained invocation
-
addWaitSemaphores
Adds elements towaitSemaphoreslist.- Parameters:
elements- An array of waitSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
setWaitSemaphores
public final JCSwapchainSubmitInfo.Builder setWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Sets or replaces all elements forwaitSemaphoreslist.- Parameters:
elements- An iterable of waitSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
addAllWaitSemaphores
public final JCSwapchainSubmitInfo.Builder addAllWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Adds elements towaitSemaphoreslist.- Parameters:
elements- An iterable of waitSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
addSignalSemaphores
Adds one element tosignalSemaphoreslist.- Parameters:
element- A signalSemaphores element- Returns:
thisbuilder for use in a chained invocation
-
addSignalSemaphores
public final JCSwapchainSubmitInfo.Builder addSignalSemaphores(VulkanSemaphoreSubmitInfo... elements) Adds elements tosignalSemaphoreslist.- Parameters:
elements- An array of signalSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
setSignalSemaphores
public final JCSwapchainSubmitInfo.Builder setSignalSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Sets or replaces all elements forsignalSemaphoreslist.- Parameters:
elements- An iterable of signalSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSignalSemaphores
public final JCSwapchainSubmitInfo.Builder addAllSignalSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Adds elements tosignalSemaphoreslist.- Parameters:
elements- An iterable of signalSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newJCSwapchainSubmitInfo.- Returns:
- An immutable instance of JCSwapchainSubmitInfo
- Throws:
IllegalStateException- if any required attributes are missing
-