Class VulkanPhysicalDeviceFeatures.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanPhysicalDeviceFeatures.Builder
- Enclosing class:
VulkanPhysicalDeviceFeatures
Builds instances of type
VulkanPhysicalDeviceFeatures.
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 newVulkanPhysicalDeviceFeatures.from(VulkanPhysicalDeviceFeaturesType instance) Fill a builder with attribute values from the providedVulkanPhysicalDeviceFeaturesTypeinstance.setFeatures10(VulkanPhysicalDeviceFeatures10 features10) Initializes the value for thefeatures10attribute.setFeatures11(VulkanPhysicalDeviceFeatures11 features11) Initializes the value for thefeatures11attribute.setFeatures12(VulkanPhysicalDeviceFeatures12 features12) Initializes the value for thefeatures12attribute.setFeatures13(VulkanPhysicalDeviceFeatures13 features13) Initializes the value for thefeatures13attribute.setFeatures14(VulkanPhysicalDeviceFeatures14 features14) Initializes the value for thefeatures14attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanPhysicalDeviceFeaturesTypeinstance. 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
-
setFeatures10
public final VulkanPhysicalDeviceFeatures.Builder setFeatures10(VulkanPhysicalDeviceFeatures10 features10) Initializes the value for thefeatures10attribute.If not set, this attribute will have a default value as returned by the initializer of
features10.- Parameters:
features10- The value for features10- Returns:
thisbuilder for use in a chained invocation
-
setFeatures11
public final VulkanPhysicalDeviceFeatures.Builder setFeatures11(VulkanPhysicalDeviceFeatures11 features11) Initializes the value for thefeatures11attribute.If not set, this attribute will have a default value as returned by the initializer of
features11.- Parameters:
features11- The value for features11- Returns:
thisbuilder for use in a chained invocation
-
setFeatures12
public final VulkanPhysicalDeviceFeatures.Builder setFeatures12(VulkanPhysicalDeviceFeatures12 features12) Initializes the value for thefeatures12attribute.If not set, this attribute will have a default value as returned by the initializer of
features12.- Parameters:
features12- The value for features12- Returns:
thisbuilder for use in a chained invocation
-
setFeatures13
public final VulkanPhysicalDeviceFeatures.Builder setFeatures13(VulkanPhysicalDeviceFeatures13 features13) Initializes the value for thefeatures13attribute.If not set, this attribute will have a default value as returned by the initializer of
features13.- Parameters:
features13- The value for features13- Returns:
thisbuilder for use in a chained invocation
-
setFeatures14
public final VulkanPhysicalDeviceFeatures.Builder setFeatures14(VulkanPhysicalDeviceFeatures14 features14) Initializes the value for thefeatures14attribute.If not set, this attribute will have a default value as returned by the initializer of
features14.- Parameters:
features14- The value for features14- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanPhysicalDeviceFeatures.- Returns:
- An immutable instance of VulkanPhysicalDeviceFeatures
- Throws:
IllegalStateException- if any required attributes are missing
-