Class VulkanSubmitInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanSubmitInfo.Builder
- Enclosing class:
VulkanSubmitInfo
Builds instances of type
VulkanSubmitInfo.
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 TypeMethodDescriptionfinal VulkanSubmitInfo.BuilderaddAllCommandBuffers(Iterable<? extends VulkanCommandBufferSubmitInfo> elements) Adds elements tocommandBufferslist.final VulkanSubmitInfo.BuilderaddAllSignalSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Adds elements tosignalSemaphoreslist.final VulkanSubmitInfo.BuilderaddAllWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Adds elements towaitSemaphoreslist.final VulkanSubmitInfo.BuilderAdds one element tocommandBufferslist.final VulkanSubmitInfo.BuilderaddCommandBuffers(VulkanCommandBufferSubmitInfo... elements) Adds elements tocommandBufferslist.final VulkanSubmitInfo.BuilderAdds one element tosignalSemaphoreslist.final VulkanSubmitInfo.BuilderaddSignalSemaphores(VulkanSemaphoreSubmitInfo... elements) Adds elements tosignalSemaphoreslist.final VulkanSubmitInfo.BuilderAdds one element towaitSemaphoreslist.final VulkanSubmitInfo.BuilderaddWaitSemaphores(VulkanSemaphoreSubmitInfo... elements) Adds elements towaitSemaphoreslist.build()Builds a newVulkanSubmitInfo.final VulkanSubmitInfo.Builderfrom(VulkanSubmitInfoType instance) Fill a builder with attribute values from the providedVulkanSubmitInfoTypeinstance.final VulkanSubmitInfo.BuildersetCommandBuffers(Iterable<? extends VulkanCommandBufferSubmitInfo> elements) Sets or replaces all elements forcommandBufferslist.final VulkanSubmitInfo.BuildersetSignalSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Sets or replaces all elements forsignalSemaphoreslist.final VulkanSubmitInfo.BuildersetWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Sets or replaces all elements forwaitSemaphoreslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanSubmitInfoTypeinstance. 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
-
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 VulkanSubmitInfo.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 VulkanSubmitInfo.Builder addAllWaitSemaphores(Iterable<? extends VulkanSemaphoreSubmitInfo> elements) Adds elements towaitSemaphoreslist.- Parameters:
elements- An iterable of waitSemaphores elements- 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 VulkanSubmitInfo.Builder setCommandBuffers(Iterable<? extends VulkanCommandBufferSubmitInfo> 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 VulkanSubmitInfo.Builder addAllCommandBuffers(Iterable<? extends VulkanCommandBufferSubmitInfo> elements) Adds elements tocommandBufferslist.- Parameters:
elements- An iterable of commandBuffers 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
Adds elements tosignalSemaphoreslist.- Parameters:
elements- An array of signalSemaphores elements- Returns:
thisbuilder for use in a chained invocation
-
setSignalSemaphores
public final VulkanSubmitInfo.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 VulkanSubmitInfo.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 newVulkanSubmitInfo.- Returns:
- An immutable instance of VulkanSubmitInfo
- Throws:
IllegalStateException- if any required attributes are missing
-