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,bindingsFlags.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.withBindingsFlags(Iterable<? extends Set<VulkanDescriptorBindingFlag>> elements) Copy the current immutable object with elements that replace the content ofbindingsFlags.withBindingsFlags(Set<VulkanDescriptorBindingFlag>... elements) Copy the current immutable object with elements that replace the content ofbindingsFlags.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.Methods inherited from interface VulkanDescriptorSetLayoutCreateInfoType
checkPreconditions
-
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.
-
bindingsFlags
- Specified by:
bindingsFlagsin interfaceVulkanDescriptorSetLayoutCreateInfoType- Returns:
- The flags for each binding
- See Also:
-
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 or
thisif not changed
-
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 or
thisif not changed
-
withBindingsFlags
@SafeVarargs public final VulkanDescriptorSetLayoutCreateInfo withBindingsFlags(Set<VulkanDescriptorBindingFlag>... elements) Copy the current immutable object with elements that replace the content ofbindingsFlags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBindingsFlags
public final VulkanDescriptorSetLayoutCreateInfo withBindingsFlags(Iterable<? extends Set<VulkanDescriptorBindingFlag>> elements) Copy the current immutable object with elements that replace the content ofbindingsFlags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of bindingsFlags elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
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 .addBindingsFlags|addAllBindingsFlags(Set<com.io7m.jcoronado.api.VulkanDescriptorBindingFlag>) //bindingsFlagselements .build();- Returns:
- A new VulkanDescriptorSetLayoutCreateInfo builder
-