Class VulkanComputeWorkGroupCount.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanComputeWorkGroupCount.Builder
- Enclosing class:
VulkanComputeWorkGroupCount
Builds instances of type
VulkanComputeWorkGroupCount.
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 newVulkanComputeWorkGroupCount.from(VulkanComputeWorkGroupCountType instance) Fill a builder with attribute values from the providedVulkanComputeWorkGroupCountTypeinstance.setMaximumX(int maximumX) Initializes the value for themaximumXattribute.setMaximumY(int maximumY) Initializes the value for themaximumYattribute.setMaximumZ(int maximumZ) Initializes the value for themaximumZattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanComputeWorkGroupCountTypeinstance. 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
-
setMaximumX
Initializes the value for themaximumXattribute.- Parameters:
maximumX- The value for maximumX- Returns:
thisbuilder for use in a chained invocation
-
setMaximumY
Initializes the value for themaximumYattribute.- Parameters:
maximumY- The value for maximumY- Returns:
thisbuilder for use in a chained invocation
-
setMaximumZ
Initializes the value for themaximumZattribute.- Parameters:
maximumZ- The value for maximumZ- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanComputeWorkGroupCount.- Returns:
- An immutable instance of VulkanComputeWorkGroupCount
- Throws:
IllegalStateException- if any required attributes are missing
-