Class VulkanPipelineVertexInputStateCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanPipelineVertexInputStateCreateInfo
- All Implemented Interfaces:
VulkanPipelineVertexInputStateCreateInfoType
public final class VulkanPipelineVertexInputStateCreateInfo
extends Object
implements VulkanPipelineVertexInputStateCreateInfoType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPipelineVertexInputStateCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanPipelineVertexInputStateCreateInfo.Creates an immutable copy of aVulkanPipelineVertexInputStateCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanPipelineVertexInputStateCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,vertexBindingDescriptions,vertexAttributeDescriptions.toString()Prints the immutable valueVulkanPipelineVertexInputStateCreateInfowith attribute values.withFlags(VulkanPipelineVertexInputStateCreateFlag... 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.Copy the current immutable object with elements that replace the content ofvertexAttributeDescriptions.withVertexAttributeDescriptions(Iterable<? extends VulkanVertexInputAttributeDescription> elements) Copy the current immutable object with elements that replace the content ofvertexAttributeDescriptions.Copy the current immutable object with elements that replace the content ofvertexBindingDescriptions.withVertexBindingDescriptions(Iterable<? extends VulkanVertexInputBindingDescription> elements) Copy the current immutable object with elements that replace the content ofvertexBindingDescriptions.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanPipelineVertexInputStateCreateInfoType- Returns:
- Flags reserved for future use
-
vertexBindingDescriptions
- Specified by:
vertexBindingDescriptionsin interfaceVulkanPipelineVertexInputStateCreateInfoType- Returns:
- The binding descriptions
-
vertexAttributeDescriptions
- Specified by:
vertexAttributeDescriptionsin interfaceVulkanPipelineVertexInputStateCreateInfoType- Returns:
- The attribute descriptions
-
withFlags
public final VulkanPipelineVertexInputStateCreateInfo withFlags(VulkanPipelineVertexInputStateCreateFlag... 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 VulkanPipelineVertexInputStateCreateInfo withFlags(Iterable<VulkanPipelineVertexInputStateCreateFlag> 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
-
withVertexBindingDescriptions
public final VulkanPipelineVertexInputStateCreateInfo withVertexBindingDescriptions(VulkanVertexInputBindingDescription... elements) Copy the current immutable object with elements that replace the content ofvertexBindingDescriptions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withVertexBindingDescriptions
public final VulkanPipelineVertexInputStateCreateInfo withVertexBindingDescriptions(Iterable<? extends VulkanVertexInputBindingDescription> elements) Copy the current immutable object with elements that replace the content ofvertexBindingDescriptions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of vertexBindingDescriptions elements to set- Returns:
- A modified copy or
thisif not changed
-
withVertexAttributeDescriptions
public final VulkanPipelineVertexInputStateCreateInfo withVertexAttributeDescriptions(VulkanVertexInputAttributeDescription... elements) Copy the current immutable object with elements that replace the content ofvertexAttributeDescriptions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withVertexAttributeDescriptions
public final VulkanPipelineVertexInputStateCreateInfo withVertexAttributeDescriptions(Iterable<? extends VulkanVertexInputAttributeDescription> elements) Copy the current immutable object with elements that replace the content ofvertexAttributeDescriptions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of vertexAttributeDescriptions elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
public static VulkanPipelineVertexInputStateCreateInfo copyOf(VulkanPipelineVertexInputStateCreateInfoType instance) Creates an immutable copy of aVulkanPipelineVertexInputStateCreateInfoTypevalue. 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 VulkanPipelineVertexInputStateCreateInfo instance
-
builder
Creates a builder forVulkanPipelineVertexInputStateCreateInfo.VulkanPipelineVertexInputStateCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanPipelineVertexInputStateCreateFlag) //
flagselements .addVertexBindingDescriptions|addAllVertexBindingDescriptions(VulkanVertexInputBindingDescription) //vertexBindingDescriptionselements .addVertexAttributeDescriptions|addAllVertexAttributeDescriptions(VulkanVertexInputAttributeDescription) //vertexAttributeDescriptionselements .build();- Returns:
- A new VulkanPipelineVertexInputStateCreateInfo builder
-