Class VulkanPipelineInputAssemblyStateCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanPipelineInputAssemblyStateCreateInfo
- All Implemented Interfaces:
VulkanPipelineInputAssemblyStateCreateInfoType
public final class VulkanPipelineInputAssemblyStateCreateInfo
extends Object
implements VulkanPipelineInputAssemblyStateCreateInfoType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPipelineInputAssemblyStateCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanPipelineInputAssemblyStateCreateInfo.Creates an immutable copy of aVulkanPipelineInputAssemblyStateCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanPipelineInputAssemblyStateCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,topology,primitiveRestartEnable.booleantopology()toString()Prints the immutable valueVulkanPipelineInputAssemblyStateCreateInfowith attribute values.withFlags(VulkanPipelineInputAssemblyStateCreateFlag... 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.withPrimitiveRestartEnable(boolean value) Copy the current immutable object by setting a value for theprimitiveRestartEnableattribute.Copy the current immutable object by setting a value for thetopologyattribute.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanPipelineInputAssemblyStateCreateInfoType- Returns:
- Flags reserved for future use
-
topology
- Specified by:
topologyin interfaceVulkanPipelineInputAssemblyStateCreateInfoType- Returns:
- The primitive topology
-
primitiveRestartEnable
public boolean primitiveRestartEnable()- Specified by:
primitiveRestartEnablein interfaceVulkanPipelineInputAssemblyStateCreateInfoType- Returns:
trueif 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
thisobject
-
withFlags
public final VulkanPipelineInputAssemblyStateCreateInfo withFlags(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 or
thisif not changed
-
withTopology
Copy the current immutable object by setting a value for thetopologyattribute. 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 or the
thisobject
-
withPrimitiveRestartEnable
Copy the current immutable object by setting a value for theprimitiveRestartEnableattribute. 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 or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
public static VulkanPipelineInputAssemblyStateCreateInfo copyOf(VulkanPipelineInputAssemblyStateCreateInfoType instance) Creates an immutable copy of aVulkanPipelineInputAssemblyStateCreateInfoTypevalue. 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
Creates a builder forVulkanPipelineInputAssemblyStateCreateInfo.VulkanPipelineInputAssemblyStateCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanPipelineInputAssemblyStateCreateFlag) //
flagselements .setTopology(com.io7m.jcoronado.api.VulkanPrimitiveTopology) // optionaltopology.setPrimitiveRestartEnable(boolean) // optionalprimitiveRestartEnable.build();- Returns:
- A new VulkanPipelineInputAssemblyStateCreateInfo builder
-