Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPipelineInputAssemblyStateCreateInfo
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineInputAssemblyStateCreateInfo
-
- All Implemented Interfaces:
VulkanPipelineInputAssemblyStateCreateInfoType
public final class VulkanPipelineInputAssemblyStateCreateInfo extends java.lang.Object implements VulkanPipelineInputAssemblyStateCreateInfoType
- See Also:
- "VkPipelineInputAssemblyStateCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanPipelineInputAssemblyStateCreateInfo.Builder
Builds instances of typeVulkanPipelineInputAssemblyStateCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanPipelineInputAssemblyStateCreateInfo.Builder
builder()
Creates a builder forVulkanPipelineInputAssemblyStateCreateInfo
.static VulkanPipelineInputAssemblyStateCreateInfo
copyOf(VulkanPipelineInputAssemblyStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineInputAssemblyStateCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineInputAssemblyStateCreateInfo
that have equal attribute values.java.util.Set<VulkanPipelineInputAssemblyStateCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,topology
,primitiveRestartEnable
.static VulkanPipelineInputAssemblyStateCreateInfo
of(java.lang.Iterable<VulkanPipelineInputAssemblyStateCreateFlag> flags, VulkanPrimitiveTopology topology, boolean primitiveRestartEnable)
Construct a new immutableVulkanPipelineInputAssemblyStateCreateInfo
instance.static VulkanPipelineInputAssemblyStateCreateInfo
of(java.util.Set<VulkanPipelineInputAssemblyStateCreateFlag> flags, VulkanPrimitiveTopology topology, boolean primitiveRestartEnable)
Construct a new immutableVulkanPipelineInputAssemblyStateCreateInfo
instance.boolean
primitiveRestartEnable()
VulkanPrimitiveTopology
topology()
java.lang.String
toString()
Prints the immutable valueVulkanPipelineInputAssemblyStateCreateInfo
with attribute values.VulkanPipelineInputAssemblyStateCreateInfo
withFlags(VulkanPipelineInputAssemblyStateCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineInputAssemblyStateCreateInfo
withFlags(java.lang.Iterable<VulkanPipelineInputAssemblyStateCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineInputAssemblyStateCreateInfo
withPrimitiveRestartEnable(boolean value)
Copy the current immutable object by setting a value for theprimitiveRestartEnable
attribute.VulkanPipelineInputAssemblyStateCreateInfo
withTopology(VulkanPrimitiveTopology value)
Copy the current immutable object by setting a value for thetopology
attribute.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanPipelineInputAssemblyStateCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanPipelineInputAssemblyStateCreateInfoType
- Returns:
- Flags reserved for future use
-
topology
public VulkanPrimitiveTopology topology()
- Specified by:
topology
in interfaceVulkanPipelineInputAssemblyStateCreateInfoType
- Returns:
- The primitive topology
-
primitiveRestartEnable
public boolean primitiveRestartEnable()
- Specified by:
primitiveRestartEnable
in interfaceVulkanPipelineInputAssemblyStateCreateInfoType
- Returns:
true
if a special vertex index value is treated as restarting the assembly of primitives
-
withFlags
public final VulkanPipelineInputAssemblyStateCreateInfo withFlags(VulkanPipelineInputAssemblyStateCreateFlag... 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 VulkanPipelineInputAssemblyStateCreateInfo withFlags(java.lang.Iterable<VulkanPipelineInputAssemblyStateCreateFlag> 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
-
withTopology
public final VulkanPipelineInputAssemblyStateCreateInfo withTopology(VulkanPrimitiveTopology value)
Copy the current immutable object by setting a value for thetopology
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for topology- Returns:
- A modified copy of the
this
object
-
withPrimitiveRestartEnable
public final VulkanPipelineInputAssemblyStateCreateInfo withPrimitiveRestartEnable(boolean value)
Copy the current immutable object by setting a value for theprimitiveRestartEnable
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for primitiveRestartEnable- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineInputAssemblyStateCreateInfo
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
,topology
,primitiveRestartEnable
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanPipelineInputAssemblyStateCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanPipelineInputAssemblyStateCreateInfo of(java.util.Set<VulkanPipelineInputAssemblyStateCreateFlag> flags, VulkanPrimitiveTopology topology, boolean primitiveRestartEnable)
Construct a new immutableVulkanPipelineInputAssemblyStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributetopology
- The value for thetopology
attributeprimitiveRestartEnable
- The value for theprimitiveRestartEnable
attribute- Returns:
- An immutable VulkanPipelineInputAssemblyStateCreateInfo instance
-
of
public static VulkanPipelineInputAssemblyStateCreateInfo of(java.lang.Iterable<VulkanPipelineInputAssemblyStateCreateFlag> flags, VulkanPrimitiveTopology topology, boolean primitiveRestartEnable)
Construct a new immutableVulkanPipelineInputAssemblyStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributetopology
- The value for thetopology
attributeprimitiveRestartEnable
- The value for theprimitiveRestartEnable
attribute- Returns:
- An immutable VulkanPipelineInputAssemblyStateCreateInfo instance
-
copyOf
public static VulkanPipelineInputAssemblyStateCreateInfo copyOf(VulkanPipelineInputAssemblyStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineInputAssemblyStateCreateInfoType
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 VulkanPipelineInputAssemblyStateCreateInfo instance
-
builder
public static VulkanPipelineInputAssemblyStateCreateInfo.Builder builder()
Creates a builder forVulkanPipelineInputAssemblyStateCreateInfo
.- Returns:
- A new VulkanPipelineInputAssemblyStateCreateInfo builder
-
-