Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPipelineTessellationStateCreateInfo
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineTessellationStateCreateInfo
-
- All Implemented Interfaces:
VulkanPipelineTessellationStateCreateInfoType
public final class VulkanPipelineTessellationStateCreateInfo extends java.lang.Object implements VulkanPipelineTessellationStateCreateInfoType
Structure specifying parameters of a newly created pipeline tessellation state.- See Also:
- "VkPipelineTessellationStateCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanPipelineTessellationStateCreateInfo.Builder
Builds instances of typeVulkanPipelineTessellationStateCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanPipelineTessellationStateCreateInfo.Builder
builder()
Creates a builder forVulkanPipelineTessellationStateCreateInfo
.static VulkanPipelineTessellationStateCreateInfo
copyOf(VulkanPipelineTessellationStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineTessellationStateCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineTessellationStateCreateInfo
that have equal attribute values.java.util.Set<VulkanPipelineTessellationStageCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,patchControlPoints
.static VulkanPipelineTessellationStateCreateInfo
of(java.lang.Iterable<VulkanPipelineTessellationStageCreateFlag> flags, int patchControlPoints)
Construct a new immutableVulkanPipelineTessellationStateCreateInfo
instance.static VulkanPipelineTessellationStateCreateInfo
of(java.util.Set<VulkanPipelineTessellationStageCreateFlag> flags, int patchControlPoints)
Construct a new immutableVulkanPipelineTessellationStateCreateInfo
instance.int
patchControlPoints()
java.lang.String
toString()
Prints the immutable valueVulkanPipelineTessellationStateCreateInfo
with attribute values.VulkanPipelineTessellationStateCreateInfo
withFlags(VulkanPipelineTessellationStageCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineTessellationStateCreateInfo
withFlags(java.lang.Iterable<VulkanPipelineTessellationStageCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineTessellationStateCreateInfo
withPatchControlPoints(int value)
Copy the current immutable object by setting a value for thepatchControlPoints
attribute.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanPipelineTessellationStageCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanPipelineTessellationStateCreateInfoType
- Returns:
- Creation flags
-
patchControlPoints
public int patchControlPoints()
- Specified by:
patchControlPoints
in 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
this
object
-
withFlags
public final VulkanPipelineTessellationStateCreateInfo withFlags(java.lang.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
this
object
-
withPatchControlPoints
public final VulkanPipelineTessellationStateCreateInfo withPatchControlPoints(int value)
Copy the current immutable object by setting a value for thepatchControlPoints
attribute. 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
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineTessellationStateCreateInfo
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:flags
,patchControlPoints
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanPipelineTessellationStateCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanPipelineTessellationStateCreateInfo of(java.util.Set<VulkanPipelineTessellationStageCreateFlag> flags, int patchControlPoints)
Construct a new immutableVulkanPipelineTessellationStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributepatchControlPoints
- The value for thepatchControlPoints
attribute- Returns:
- An immutable VulkanPipelineTessellationStateCreateInfo instance
-
of
public static VulkanPipelineTessellationStateCreateInfo of(java.lang.Iterable<VulkanPipelineTessellationStageCreateFlag> flags, int patchControlPoints)
Construct a new immutableVulkanPipelineTessellationStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributepatchControlPoints
- The value for thepatchControlPoints
attribute- Returns:
- An immutable VulkanPipelineTessellationStateCreateInfo instance
-
copyOf
public static VulkanPipelineTessellationStateCreateInfo copyOf(VulkanPipelineTessellationStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineTessellationStateCreateInfoType
value. 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
public static VulkanPipelineTessellationStateCreateInfo.Builder builder()
Creates a builder forVulkanPipelineTessellationStateCreateInfo
.- Returns:
- A new VulkanPipelineTessellationStateCreateInfo builder
-
-