Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanDescriptorSetLayoutCreateInfo
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanDescriptorSetLayoutCreateInfo
-
- All Implemented Interfaces:
VulkanDescriptorSetLayoutCreateInfoType
public final class VulkanDescriptorSetLayoutCreateInfo extends java.lang.Object implements VulkanDescriptorSetLayoutCreateInfoType
- See Also:
- "VkDescriptorSetLayoutCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanDescriptorSetLayoutCreateInfo.Builder
Builds instances of typeVulkanDescriptorSetLayoutCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<VulkanDescriptorSetLayoutBinding>
bindings()
static VulkanDescriptorSetLayoutCreateInfo.Builder
builder()
Creates a builder forVulkanDescriptorSetLayoutCreateInfo
.static VulkanDescriptorSetLayoutCreateInfo
copyOf(VulkanDescriptorSetLayoutCreateInfoType instance)
Creates an immutable copy of aVulkanDescriptorSetLayoutCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanDescriptorSetLayoutCreateInfo
that have equal attribute values.java.util.Set<VulkanDescriptorSetLayoutCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,bindings
.static VulkanDescriptorSetLayoutCreateInfo
of(java.lang.Iterable<VulkanDescriptorSetLayoutCreateFlag> flags, java.lang.Iterable<? extends VulkanDescriptorSetLayoutBinding> bindings)
Construct a new immutableVulkanDescriptorSetLayoutCreateInfo
instance.static VulkanDescriptorSetLayoutCreateInfo
of(java.util.Set<VulkanDescriptorSetLayoutCreateFlag> flags, java.util.List<VulkanDescriptorSetLayoutBinding> bindings)
Construct a new immutableVulkanDescriptorSetLayoutCreateInfo
instance.java.lang.String
toString()
Prints the immutable valueVulkanDescriptorSetLayoutCreateInfo
with attribute values.VulkanDescriptorSetLayoutCreateInfo
withBindings(VulkanDescriptorSetLayoutBinding... elements)
Copy the current immutable object with elements that replace the content ofbindings
.VulkanDescriptorSetLayoutCreateInfo
withBindings(java.lang.Iterable<? extends VulkanDescriptorSetLayoutBinding> elements)
Copy the current immutable object with elements that replace the content ofbindings
.VulkanDescriptorSetLayoutCreateInfo
withFlags(VulkanDescriptorSetLayoutCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanDescriptorSetLayoutCreateInfo
withFlags(java.lang.Iterable<VulkanDescriptorSetLayoutCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanDescriptorSetLayoutCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanDescriptorSetLayoutCreateInfoType
- Returns:
- A bitmask of VulkanDescriptorSetLayoutCreateFlag values specifying options for descriptor set layout creation.
-
bindings
public java.util.List<VulkanDescriptorSetLayoutBinding> bindings()
- Specified by:
bindings
in interfaceVulkanDescriptorSetLayoutCreateInfoType
- Returns:
- An array of VulkanDescriptorSetLayoutBinding structures.
-
withFlags
public final VulkanDescriptorSetLayoutCreateInfo withFlags(VulkanDescriptorSetLayoutCreateFlag... 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 VulkanDescriptorSetLayoutCreateInfo withFlags(java.lang.Iterable<VulkanDescriptorSetLayoutCreateFlag> 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
-
withBindings
public final VulkanDescriptorSetLayoutCreateInfo withBindings(VulkanDescriptorSetLayoutBinding... elements)
Copy the current immutable object with elements that replace the content ofbindings
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withBindings
public final VulkanDescriptorSetLayoutCreateInfo withBindings(java.lang.Iterable<? extends VulkanDescriptorSetLayoutBinding> elements)
Copy the current immutable object with elements that replace the content ofbindings
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of bindings 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 ofVulkanDescriptorSetLayoutCreateInfo
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
,bindings
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanDescriptorSetLayoutCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanDescriptorSetLayoutCreateInfo of(java.util.Set<VulkanDescriptorSetLayoutCreateFlag> flags, java.util.List<VulkanDescriptorSetLayoutBinding> bindings)
Construct a new immutableVulkanDescriptorSetLayoutCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributebindings
- The value for thebindings
attribute- Returns:
- An immutable VulkanDescriptorSetLayoutCreateInfo instance
-
of
public static VulkanDescriptorSetLayoutCreateInfo of(java.lang.Iterable<VulkanDescriptorSetLayoutCreateFlag> flags, java.lang.Iterable<? extends VulkanDescriptorSetLayoutBinding> bindings)
Construct a new immutableVulkanDescriptorSetLayoutCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributebindings
- The value for thebindings
attribute- Returns:
- An immutable VulkanDescriptorSetLayoutCreateInfo instance
-
copyOf
public static VulkanDescriptorSetLayoutCreateInfo copyOf(VulkanDescriptorSetLayoutCreateInfoType instance)
Creates an immutable copy of aVulkanDescriptorSetLayoutCreateInfoType
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 VulkanDescriptorSetLayoutCreateInfo instance
-
builder
public static VulkanDescriptorSetLayoutCreateInfo.Builder builder()
Creates a builder forVulkanDescriptorSetLayoutCreateInfo
.- Returns:
- A new VulkanDescriptorSetLayoutCreateInfo builder
-
-