Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPipelineTessellationStateCreateInfo.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineTessellationStateCreateInfo.Builder
-
- Enclosing class:
- VulkanPipelineTessellationStateCreateInfo
public static final class VulkanPipelineTessellationStateCreateInfo.Builder extends java.lang.Object
Builds instances of typeVulkanPipelineTessellationStateCreateInfo
. 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
-
-
-
Method Detail
-
from
public final VulkanPipelineTessellationStateCreateInfo.Builder from(VulkanPipelineTessellationStateCreateInfoType instance)
Fill a builder with attribute values from the providedVulkanPipelineTessellationStateCreateInfoType
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanPipelineTessellationStateCreateInfo.Builder addFlags(VulkanPipelineTessellationStageCreateFlag element)
Adds one element toflags
set.- Parameters:
element
- A flags element- Returns:
this
builder for use in a chained invocation
-
addFlags
public final VulkanPipelineTessellationStateCreateInfo.Builder addFlags(VulkanPipelineTessellationStageCreateFlag... elements)
Adds elements toflags
set.- Parameters:
elements
- An array of flags elements- Returns:
this
builder for use in a chained invocation
-
setFlags
public final VulkanPipelineTessellationStateCreateInfo.Builder setFlags(java.lang.Iterable<VulkanPipelineTessellationStageCreateFlag> elements)
Sets or replaces all elements forflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
addAllFlags
public final VulkanPipelineTessellationStateCreateInfo.Builder addAllFlags(java.lang.Iterable<VulkanPipelineTessellationStageCreateFlag> elements)
Adds elements toflags
set.- Parameters:
elements
- An iterable of flags elements- Returns:
this
builder for use in a chained invocation
-
setPatchControlPoints
public final VulkanPipelineTessellationStateCreateInfo.Builder setPatchControlPoints(int patchControlPoints)
Initializes the value for thepatchControlPoints
attribute.- Parameters:
patchControlPoints
- The value for patchControlPoints- Returns:
this
builder for use in a chained invocation
-
build
public VulkanPipelineTessellationStateCreateInfo build()
Builds a newVulkanPipelineTessellationStateCreateInfo
.- Returns:
- An immutable instance of VulkanPipelineTessellationStateCreateInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-