Class VulkanDescriptorSetLayoutCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanDescriptorSetLayoutCreateInfo
- All Implemented Interfaces:
VulkanDescriptorSetLayoutCreateInfoType
public final class VulkanDescriptorSetLayoutCreateInfo
extends Object
implements VulkanDescriptorSetLayoutCreateInfoType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanDescriptorSetLayoutCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbindings()builder()Creates a builder forVulkanDescriptorSetLayoutCreateInfo.Creates an immutable copy of aVulkanDescriptorSetLayoutCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanDescriptorSetLayoutCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,bindings.of(Iterable<VulkanDescriptorSetLayoutCreateFlag> flags, Iterable<? extends VulkanDescriptorSetLayoutBinding> bindings) Construct a new immutableVulkanDescriptorSetLayoutCreateInfoinstance.of(Set<VulkanDescriptorSetLayoutCreateFlag> flags, List<VulkanDescriptorSetLayoutBinding> bindings) Construct a new immutableVulkanDescriptorSetLayoutCreateInfoinstance.toString()Prints the immutable valueVulkanDescriptorSetLayoutCreateInfowith attribute values.withBindings(VulkanDescriptorSetLayoutBinding... elements) Copy the current immutable object with elements that replace the content ofbindings.withBindings(Iterable<? extends VulkanDescriptorSetLayoutBinding> elements) Copy the current immutable object with elements that replace the content ofbindings.withFlags(VulkanDescriptorSetLayoutCreateFlag... elements) Copy the current immutable object with elements that replace the content offlags.withFlags(Iterable<VulkanDescriptorSetLayoutCreateFlag> elements) Copy the current immutable object with elements that replace the content offlags.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanDescriptorSetLayoutCreateInfoType- Returns:
- A bitmask of VulkanDescriptorSetLayoutCreateFlag values specifying options for descriptor set layout creation.
-
bindings
- Specified by:
bindingsin 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
thisobject
-
withFlags
public final VulkanDescriptorSetLayoutCreateInfo withFlags(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
thisobject
-
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
thisobject
-
withBindings
public final VulkanDescriptorSetLayoutCreateInfo withBindings(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
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanDescriptorSetLayoutCreateInfo of(Set<VulkanDescriptorSetLayoutCreateFlag> flags, List<VulkanDescriptorSetLayoutBinding> bindings) Construct a new immutableVulkanDescriptorSetLayoutCreateInfoinstance.- Parameters:
flags- The value for theflagsattributebindings- The value for thebindingsattribute- Returns:
- An immutable VulkanDescriptorSetLayoutCreateInfo instance
-
of
public static VulkanDescriptorSetLayoutCreateInfo of(Iterable<VulkanDescriptorSetLayoutCreateFlag> flags, Iterable<? extends VulkanDescriptorSetLayoutBinding> bindings) Construct a new immutableVulkanDescriptorSetLayoutCreateInfoinstance.- Parameters:
flags- The value for theflagsattributebindings- The value for thebindingsattribute- Returns:
- An immutable VulkanDescriptorSetLayoutCreateInfo instance
-
copyOf
public static VulkanDescriptorSetLayoutCreateInfo copyOf(VulkanDescriptorSetLayoutCreateInfoType instance) Creates an immutable copy of aVulkanDescriptorSetLayoutCreateInfoTypevalue. 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
Creates a builder forVulkanDescriptorSetLayoutCreateInfo.VulkanDescriptorSetLayoutCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanDescriptorSetLayoutCreateFlag) //flagselements .addBindings|addAllBindings(VulkanDescriptorSetLayoutBinding) //bindingselements .build();- Returns:
- A new VulkanDescriptorSetLayoutCreateInfo builder
-