Class VulkanSemaphoreSubmitInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanSemaphoreSubmitInfo.Builder
- Enclosing class:
VulkanSemaphoreSubmitInfo
Builds instances of type
VulkanSemaphoreSubmitInfo.
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 TypeMethodDescriptionaddAllStageMask(Iterable<VulkanPipelineStageFlag> elements) Adds elements tostageMaskset.addStageMask(VulkanPipelineStageFlag element) Adds one element tostageMaskset.addStageMask(VulkanPipelineStageFlag... elements) Adds elements tostageMaskset.build()Builds a newVulkanSemaphoreSubmitInfo.from(VulkanSemaphoreSubmitInfoType instance) Fill a builder with attribute values from the providedVulkanSemaphoreSubmitInfoTypeinstance.setDeviceIndex(long deviceIndex) Initializes the value for thedeviceIndexattribute.setSemaphore(VulkanSemaphoreType semaphore) Initializes the value for thesemaphoreattribute.setStageMask(Iterable<VulkanPipelineStageFlag> elements) Sets or replaces all elements forstageMaskset.setValue(long value) Initializes the value for thevalueattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanSemaphoreSubmitInfoTypeinstance. 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
-
setSemaphore
Initializes the value for thesemaphoreattribute.- Parameters:
semaphore- The value for semaphore- Returns:
thisbuilder for use in a chained invocation
-
setValue
-
addStageMask
Adds one element tostageMaskset.- Parameters:
element- A stageMask element- Returns:
thisbuilder for use in a chained invocation
-
addStageMask
Adds elements tostageMaskset.- Parameters:
elements- An array of stageMask elements- Returns:
thisbuilder for use in a chained invocation
-
setStageMask
public final VulkanSemaphoreSubmitInfo.Builder setStageMask(Iterable<VulkanPipelineStageFlag> elements) Sets or replaces all elements forstageMaskset.- Parameters:
elements- An iterable of stageMask elements- Returns:
thisbuilder for use in a chained invocation
-
addAllStageMask
public final VulkanSemaphoreSubmitInfo.Builder addAllStageMask(Iterable<VulkanPipelineStageFlag> elements) Adds elements tostageMaskset.- Parameters:
elements- An iterable of stageMask elements- Returns:
thisbuilder for use in a chained invocation
-
setDeviceIndex
Initializes the value for thedeviceIndexattribute.If not set, this attribute will have a default value as returned by the initializer of
deviceIndex.- Parameters:
deviceIndex- The value for deviceIndex- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanSemaphoreSubmitInfo.- Returns:
- An immutable instance of VulkanSemaphoreSubmitInfo
- Throws:
IllegalStateException- if any required attributes are missing
-