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