Class VulkanSwapChainImageAcquisition.Builder
java.lang.Object
com.io7m.jcoronado.extensions.khr_swapchain.api.VulkanSwapChainImageAcquisition.Builder
- Enclosing class:
VulkanSwapChainImageAcquisition
Builds instances of type
VulkanSwapChainImageAcquisition.
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 TypeMethodDescriptionbuild()Builds a newVulkanSwapChainImageAcquisition.from(VulkanSwapChainImageAcquisitionType instance) Fill a builder with attribute values from the providedVulkanSwapChainImageAcquisitionTypeinstance.setImageIndex(int imageIndex) Initializes the optional valueimageIndexto imageIndex.setImageIndex(OptionalInt imageIndex) Initializes the optional valueimageIndexto imageIndex.setSubOptimal(boolean subOptimal) Initializes the value for thesubOptimalattribute.setTimedOut(boolean timedOut) Initializes the value for thetimedOutattribute.
-
Method Details
-
from
public final VulkanSwapChainImageAcquisition.Builder from(VulkanSwapChainImageAcquisitionType instance) Fill a builder with attribute values from the providedVulkanSwapChainImageAcquisitionTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setImageIndex
Initializes the optional valueimageIndexto imageIndex.- Parameters:
imageIndex- The value for imageIndex- Returns:
thisbuilder for chained invocation
-
setImageIndex
Initializes the optional valueimageIndexto imageIndex.- Parameters:
imageIndex- The value for imageIndex- Returns:
thisbuilder for use in a chained invocation
-
setSubOptimal
Initializes the value for thesubOptimalattribute.- Parameters:
subOptimal- The value for subOptimal- Returns:
thisbuilder for use in a chained invocation
-
setTimedOut
Initializes the value for thetimedOutattribute.- Parameters:
timedOut- The value for timedOut- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanSwapChainImageAcquisition.- Returns:
- An immutable instance of VulkanSwapChainImageAcquisition
- Throws:
IllegalStateException- if any required attributes are missing
-