Class VulkanLayerProperties.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanLayerProperties.Builder
- Enclosing class:
VulkanLayerProperties
Builds instances of type
VulkanLayerProperties.
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 newVulkanLayerProperties.from(VulkanLayerPropertiesType instance) Fill a builder with attribute values from the providedVulkanLayerPropertiesTypeinstance.setDescription(String description) Initializes the value for thedescriptionattribute.setImplementationVersion(int implementationVersion) Initializes the value for theimplementationVersionattribute.Initializes the value for thenameattribute.setSpecificationVersion(int specificationVersion) Initializes the value for thespecificationVersionattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanLayerPropertiesTypeinstance. 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
-
setName
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setDescription
Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
setSpecificationVersion
Initializes the value for thespecificationVersionattribute.- Parameters:
specificationVersion- The value for specificationVersion- Returns:
thisbuilder for use in a chained invocation
-
setImplementationVersion
Initializes the value for theimplementationVersionattribute.- Parameters:
implementationVersion- The value for implementationVersion- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanLayerProperties.- Returns:
- An immutable instance of VulkanLayerProperties
- Throws:
IllegalStateException- if any required attributes are missing
-