Class VulkanPipelineTessellationStateCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanPipelineTessellationStateCreateInfo
- All Implemented Interfaces:
VulkanPipelineTessellationStateCreateInfoType
public final class VulkanPipelineTessellationStateCreateInfo
extends Object
implements VulkanPipelineTessellationStateCreateInfoType
Structure specifying parameters of a newly created pipeline tessellation state.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPipelineTessellationStateCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanPipelineTessellationStateCreateInfo.Creates an immutable copy of aVulkanPipelineTessellationStateCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanPipelineTessellationStateCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,patchControlPoints.of(Iterable<VulkanPipelineTessellationStageCreateFlag> flags, int patchControlPoints) Construct a new immutableVulkanPipelineTessellationStateCreateInfoinstance.of(Set<VulkanPipelineTessellationStageCreateFlag> flags, int patchControlPoints) Construct a new immutableVulkanPipelineTessellationStateCreateInfoinstance.inttoString()Prints the immutable valueVulkanPipelineTessellationStateCreateInfowith attribute values.withFlags(VulkanPipelineTessellationStageCreateFlag... elements) Copy the current immutable object with elements that replace the content offlags.Copy the current immutable object with elements that replace the content offlags.withPatchControlPoints(int value) Copy the current immutable object by setting a value for thepatchControlPointsattribute.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanPipelineTessellationStateCreateInfoType- Returns:
- Creation flags
-
patchControlPoints
public int patchControlPoints()- Specified by:
patchControlPointsin interfaceVulkanPipelineTessellationStateCreateInfoType- Returns:
- The number of control points per patch.
-
withFlags
public final VulkanPipelineTessellationStateCreateInfo withFlags(VulkanPipelineTessellationStageCreateFlag... elements) Copy the current immutable object with elements that replace the content offlags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFlags
public final VulkanPipelineTessellationStateCreateInfo withFlags(Iterable<VulkanPipelineTessellationStageCreateFlag> elements) Copy the current immutable object with elements that replace the content offlags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of flags elements to set- Returns:
- A modified copy of
thisobject
-
withPatchControlPoints
Copy the current immutable object by setting a value for thepatchControlPointsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for patchControlPoints- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanPipelineTessellationStateCreateInfo of(Set<VulkanPipelineTessellationStageCreateFlag> flags, int patchControlPoints) Construct a new immutableVulkanPipelineTessellationStateCreateInfoinstance.- Parameters:
flags- The value for theflagsattributepatchControlPoints- The value for thepatchControlPointsattribute- Returns:
- An immutable VulkanPipelineTessellationStateCreateInfo instance
-
of
public static VulkanPipelineTessellationStateCreateInfo of(Iterable<VulkanPipelineTessellationStageCreateFlag> flags, int patchControlPoints) Construct a new immutableVulkanPipelineTessellationStateCreateInfoinstance.- Parameters:
flags- The value for theflagsattributepatchControlPoints- The value for thepatchControlPointsattribute- Returns:
- An immutable VulkanPipelineTessellationStateCreateInfo instance
-
copyOf
public static VulkanPipelineTessellationStateCreateInfo copyOf(VulkanPipelineTessellationStateCreateInfoType instance) Creates an immutable copy of aVulkanPipelineTessellationStateCreateInfoTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanPipelineTessellationStateCreateInfo instance
-
builder
Creates a builder forVulkanPipelineTessellationStateCreateInfo.VulkanPipelineTessellationStateCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanPipelineTessellationStageCreateFlag) //flagselements .setPatchControlPoints(int) // requiredpatchControlPoints.build();- Returns:
- A new VulkanPipelineTessellationStateCreateInfo builder
-