Class VulkanPipelineDynamicStateCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanPipelineDynamicStateCreateInfo
- All Implemented Interfaces:
VulkanPipelineDynamicStateCreateInfoType
public final class VulkanPipelineDynamicStateCreateInfo
extends Object
implements VulkanPipelineDynamicStateCreateInfoType
Structure specifying parameters of a newly created pipeline dynamic state.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPipelineDynamicStateCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanPipelineDynamicStateCreateInfo.Creates an immutable copy of aVulkanPipelineDynamicStateCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanPipelineDynamicStateCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,dynamicStates.toString()Prints the immutable valueVulkanPipelineDynamicStateCreateInfowith attribute values.withDynamicStates(VulkanDynamicState... elements) Copy the current immutable object with elements that replace the content ofdynamicStates.withDynamicStates(Iterable<? extends VulkanDynamicState> elements) Copy the current immutable object with elements that replace the content ofdynamicStates.withFlags(VulkanPipelineDynamicStateCreateFlag... 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.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanPipelineDynamicStateCreateInfoType- Returns:
- Flags reserved for future use
-
dynamicStates
- Specified by:
dynamicStatesin interfaceVulkanPipelineDynamicStateCreateInfoType- Returns:
- Values specifying which pieces of pipeline state will use the values from dynamic state commands rather than from pipeline state creation info.
-
withFlags
public final VulkanPipelineDynamicStateCreateInfo withFlags(VulkanPipelineDynamicStateCreateFlag... 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 VulkanPipelineDynamicStateCreateInfo withFlags(Iterable<VulkanPipelineDynamicStateCreateFlag> 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
-
withDynamicStates
Copy the current immutable object with elements that replace the content ofdynamicStates.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDynamicStates
public final VulkanPipelineDynamicStateCreateInfo withDynamicStates(Iterable<? extends VulkanDynamicState> elements) Copy the current immutable object with elements that replace the content ofdynamicStates. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of dynamicStates elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
public static VulkanPipelineDynamicStateCreateInfo copyOf(VulkanPipelineDynamicStateCreateInfoType instance) Creates an immutable copy of aVulkanPipelineDynamicStateCreateInfoTypevalue. 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 VulkanPipelineDynamicStateCreateInfo instance
-
builder
Creates a builder forVulkanPipelineDynamicStateCreateInfo.VulkanPipelineDynamicStateCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanPipelineDynamicStateCreateFlag) //
flagselements .addDynamicStates|addAllDynamicStates(com.io7m.jcoronado.api.VulkanDynamicState) //dynamicStateselements .build();- Returns:
- A new VulkanPipelineDynamicStateCreateInfo builder
-