- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanClearRectangle.Builder
-
- Enclosing class:
- VulkanClearRectangle
public static final class VulkanClearRectangle.Builder extends java.lang.Object
Builds instances of typeVulkanClearRectangle
. Initialize attributes and then invoke thebuild()
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VulkanClearRectangle
build()
Builds a newVulkanClearRectangle
.VulkanClearRectangle.Builder
from(VulkanClearRectangleType instance)
Fill a builder with attribute values from the providedVulkanClearRectangleType
instance.VulkanClearRectangle.Builder
setBaseArrayLayer(int baseArrayLayer)
Initializes the value for thebaseArrayLayer
attribute.VulkanClearRectangle.Builder
setLayerCount(int layerCount)
Initializes the value for thelayerCount
attribute.VulkanClearRectangle.Builder
setRectangle(VulkanRectangle2D rectangle)
Initializes the value for therectangle
attribute.
-
-
-
Method Detail
-
from
public final VulkanClearRectangle.Builder from(VulkanClearRectangleType instance)
Fill a builder with attribute values from the providedVulkanClearRectangleType
instance. 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:
this
builder for use in a chained invocation
-
setRectangle
public final VulkanClearRectangle.Builder setRectangle(VulkanRectangle2D rectangle)
Initializes the value for therectangle
attribute.- Parameters:
rectangle
- The value for rectangle- Returns:
this
builder for use in a chained invocation
-
setBaseArrayLayer
public final VulkanClearRectangle.Builder setBaseArrayLayer(int baseArrayLayer)
Initializes the value for thebaseArrayLayer
attribute.If not set, this attribute will have a default value as returned by the initializer of
baseArrayLayer
.- Parameters:
baseArrayLayer
- The value for baseArrayLayer- Returns:
this
builder for use in a chained invocation
-
setLayerCount
public final VulkanClearRectangle.Builder setLayerCount(int layerCount)
Initializes the value for thelayerCount
attribute.If not set, this attribute will have a default value as returned by the initializer of
layerCount
.- Parameters:
layerCount
- The value for layerCount- Returns:
this
builder for use in a chained invocation
-
build
public VulkanClearRectangle build()
Builds a newVulkanClearRectangle
.- Returns:
- An immutable instance of VulkanClearRectangle
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-