Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanClearValueColorFloatingPoint.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanClearValueColorFloatingPoint.Builder
-
- Enclosing class:
- VulkanClearValueColorFloatingPoint
public static final class VulkanClearValueColorFloatingPoint.Builder extends java.lang.Object
Builds instances of typeVulkanClearValueColorFloatingPoint
. 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 VulkanClearValueColorFloatingPoint
build()
Builds a newVulkanClearValueColorFloatingPoint
.VulkanClearValueColorFloatingPoint.Builder
from(VulkanClearValueType.VulkanClearValueColorFloatingPointType instance)
Fill a builder with attribute values from the providedVulkanClearValueColorFloatingPointType
instance.VulkanClearValueColorFloatingPoint.Builder
setAlpha(float alpha)
Initializes the value for thealpha
attribute.VulkanClearValueColorFloatingPoint.Builder
setBlue(float blue)
Initializes the value for theblue
attribute.VulkanClearValueColorFloatingPoint.Builder
setGreen(float green)
Initializes the value for thegreen
attribute.VulkanClearValueColorFloatingPoint.Builder
setRed(float red)
Initializes the value for thered
attribute.
-
-
-
Method Detail
-
from
public final VulkanClearValueColorFloatingPoint.Builder from(VulkanClearValueType.VulkanClearValueColorFloatingPointType instance)
Fill a builder with attribute values from the providedVulkanClearValueColorFloatingPointType
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
-
setRed
public final VulkanClearValueColorFloatingPoint.Builder setRed(float red)
Initializes the value for thered
attribute.- Parameters:
red
- The value for red- Returns:
this
builder for use in a chained invocation
-
setGreen
public final VulkanClearValueColorFloatingPoint.Builder setGreen(float green)
Initializes the value for thegreen
attribute.- Parameters:
green
- The value for green- Returns:
this
builder for use in a chained invocation
-
setBlue
public final VulkanClearValueColorFloatingPoint.Builder setBlue(float blue)
Initializes the value for theblue
attribute.- Parameters:
blue
- The value for blue- Returns:
this
builder for use in a chained invocation
-
setAlpha
public final VulkanClearValueColorFloatingPoint.Builder setAlpha(float alpha)
Initializes the value for thealpha
attribute.- Parameters:
alpha
- The value for alpha- Returns:
this
builder for use in a chained invocation
-
build
public VulkanClearValueColorFloatingPoint build()
Builds a newVulkanClearValueColorFloatingPoint
.- Returns:
- An immutable instance of VulkanClearValueColorFloatingPoint
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-