Class VulkanDescriptorImageInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanDescriptorImageInfo.Builder
- Enclosing class:
VulkanDescriptorImageInfo
Builds instances of type
VulkanDescriptorImageInfo.
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 newVulkanDescriptorImageInfo.from(VulkanDescriptorImageInfoType instance) Fill a builder with attribute values from the providedVulkanDescriptorImageInfoTypeinstance.setImageLayout(VulkanImageLayout imageLayout) Initializes the value for theimageLayoutattribute.setImageView(VulkanImageViewType imageView) Initializes the value for theimageViewattribute.setSampler(VulkanSamplerType sampler) Initializes the value for thesamplerattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanDescriptorImageInfoTypeinstance. 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
-
setSampler
Initializes the value for thesamplerattribute.- Parameters:
sampler- The value for sampler- Returns:
thisbuilder for use in a chained invocation
-
setImageView
Initializes the value for theimageViewattribute.- Parameters:
imageView- The value for imageView- Returns:
thisbuilder for use in a chained invocation
-
setImageLayout
Initializes the value for theimageLayoutattribute.- Parameters:
imageLayout- The value for imageLayout- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanDescriptorImageInfo.- Returns:
- An immutable instance of VulkanDescriptorImageInfo
- Throws:
IllegalStateException- if any required attributes are missing
-