Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanPipelineDynamicStateCreateInfo
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineDynamicStateCreateInfo
-
- All Implemented Interfaces:
VulkanPipelineDynamicStateCreateInfoType
public final class VulkanPipelineDynamicStateCreateInfo extends java.lang.Object implements VulkanPipelineDynamicStateCreateInfoType
Structure specifying parameters of a newly created pipeline dynamic state.- See Also:
- "VkPipelineDynamicStateCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanPipelineDynamicStateCreateInfo.Builder
Builds instances of typeVulkanPipelineDynamicStateCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanPipelineDynamicStateCreateInfo.Builder
builder()
Creates a builder forVulkanPipelineDynamicStateCreateInfo
.static VulkanPipelineDynamicStateCreateInfo
copyOf(VulkanPipelineDynamicStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineDynamicStateCreateInfoType
value.java.util.List<VulkanDynamicState>
dynamicStates()
boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineDynamicStateCreateInfo
that have equal attribute values.java.util.Set<VulkanPipelineDynamicStateCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,dynamicStates
.static VulkanPipelineDynamicStateCreateInfo
of(java.lang.Iterable<VulkanPipelineDynamicStateCreateFlag> flags, java.lang.Iterable<? extends VulkanDynamicState> dynamicStates)
Construct a new immutableVulkanPipelineDynamicStateCreateInfo
instance.static VulkanPipelineDynamicStateCreateInfo
of(java.util.Set<VulkanPipelineDynamicStateCreateFlag> flags, java.util.List<VulkanDynamicState> dynamicStates)
Construct a new immutableVulkanPipelineDynamicStateCreateInfo
instance.java.lang.String
toString()
Prints the immutable valueVulkanPipelineDynamicStateCreateInfo
with attribute values.VulkanPipelineDynamicStateCreateInfo
withDynamicStates(VulkanDynamicState... elements)
Copy the current immutable object with elements that replace the content ofdynamicStates
.VulkanPipelineDynamicStateCreateInfo
withDynamicStates(java.lang.Iterable<? extends VulkanDynamicState> elements)
Copy the current immutable object with elements that replace the content ofdynamicStates
.VulkanPipelineDynamicStateCreateInfo
withFlags(VulkanPipelineDynamicStateCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineDynamicStateCreateInfo
withFlags(java.lang.Iterable<VulkanPipelineDynamicStateCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanPipelineDynamicStateCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanPipelineDynamicStateCreateInfoType
- Returns:
- Flags reserved for future use
-
dynamicStates
public java.util.List<VulkanDynamicState> dynamicStates()
- Specified by:
dynamicStates
in 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
this
object
-
withFlags
public final VulkanPipelineDynamicStateCreateInfo withFlags(java.lang.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 of
this
object
-
withDynamicStates
public final VulkanPipelineDynamicStateCreateInfo withDynamicStates(VulkanDynamicState... elements)
Copy the current immutable object with elements that replace the content ofdynamicStates
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withDynamicStates
public final VulkanPipelineDynamicStateCreateInfo withDynamicStates(java.lang.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 of
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineDynamicStateCreateInfo
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
,dynamicStates
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanPipelineDynamicStateCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanPipelineDynamicStateCreateInfo of(java.util.Set<VulkanPipelineDynamicStateCreateFlag> flags, java.util.List<VulkanDynamicState> dynamicStates)
Construct a new immutableVulkanPipelineDynamicStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributedynamicStates
- The value for thedynamicStates
attribute- Returns:
- An immutable VulkanPipelineDynamicStateCreateInfo instance
-
of
public static VulkanPipelineDynamicStateCreateInfo of(java.lang.Iterable<VulkanPipelineDynamicStateCreateFlag> flags, java.lang.Iterable<? extends VulkanDynamicState> dynamicStates)
Construct a new immutableVulkanPipelineDynamicStateCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributedynamicStates
- The value for thedynamicStates
attribute- Returns:
- An immutable VulkanPipelineDynamicStateCreateInfo instance
-
copyOf
public static VulkanPipelineDynamicStateCreateInfo copyOf(VulkanPipelineDynamicStateCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineDynamicStateCreateInfoType
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 VulkanPipelineDynamicStateCreateInfo instance
-
builder
public static VulkanPipelineDynamicStateCreateInfo.Builder builder()
Creates a builder forVulkanPipelineDynamicStateCreateInfo
.- Returns:
- A new VulkanPipelineDynamicStateCreateInfo builder
-
-