Class VulkanClearRectangle.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanClearRectangle.Builder
- Enclosing class:
VulkanClearRectangle
Builds instances of type
VulkanClearRectangle.
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 newVulkanClearRectangle.from(VulkanClearRectangleType instance) Fill a builder with attribute values from the providedVulkanClearRectangleTypeinstance.setBaseArrayLayer(int baseArrayLayer) Initializes the value for thebaseArrayLayerattribute.setLayerCount(int layerCount) Initializes the value for thelayerCountattribute.setRectangle(VulkanRectangle2D rectangle) Initializes the value for therectangleattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanClearRectangleTypeinstance. 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
-
setRectangle
-
setBaseArrayLayer
Initializes the value for thebaseArrayLayerattribute.If not set, this attribute will have a default value as returned by the initializer of
baseArrayLayer.- Parameters:
baseArrayLayer- The value for baseArrayLayer- Returns:
thisbuilder for use in a chained invocation
-
setLayerCount
Initializes the value for thelayerCountattribute.If not set, this attribute will have a default value as returned by the initializer of
layerCount.- Parameters:
layerCount- The value for layerCount- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanClearRectangle.- Returns:
- An immutable instance of VulkanClearRectangle
- Throws:
IllegalStateException- if any required attributes are missing
-