Class VulkanCopyDescriptorSet
java.lang.Object
com.io7m.jcoronado.api.VulkanCopyDescriptorSet
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanCopyDescriptorSet. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanCopyDescriptorSet.static VulkanCopyDescriptorSetcopyOf(VulkanCopyDescriptorSetType instance) Creates an immutable copy of aVulkanCopyDescriptorSetTypevalue.intintintbooleanThis instance is equal to all instances ofVulkanCopyDescriptorSetthat have equal attribute values.inthashCode()Computes a hash code from attributes:sourceSet,sourceBinding,sourceArrayElement,destinationSet,destinationBinding,destinationArrayElement,descriptorCount.static VulkanCopyDescriptorSetof(VulkanDescriptorSetType sourceSet, int sourceBinding, int sourceArrayElement, VulkanDescriptorSetType destinationSet, int destinationBinding, int destinationArrayElement, int descriptorCount) Construct a new immutableVulkanCopyDescriptorSetinstance.intinttoString()Prints the immutable valueVulkanCopyDescriptorSetwith attribute values.final VulkanCopyDescriptorSetwithDescriptorCount(int value) Copy the current immutable object by setting a value for thedescriptorCountattribute.final VulkanCopyDescriptorSetwithDestinationArrayElement(int value) Copy the current immutable object by setting a value for thedestinationArrayElementattribute.final VulkanCopyDescriptorSetwithDestinationBinding(int value) Copy the current immutable object by setting a value for thedestinationBindingattribute.final VulkanCopyDescriptorSetCopy the current immutable object by setting a value for thedestinationSetattribute.final VulkanCopyDescriptorSetwithSourceArrayElement(int value) Copy the current immutable object by setting a value for thesourceArrayElementattribute.final VulkanCopyDescriptorSetwithSourceBinding(int value) Copy the current immutable object by setting a value for thesourceBindingattribute.final VulkanCopyDescriptorSetCopy the current immutable object by setting a value for thesourceSetattribute.
-
Method Details
-
sourceSet
- Specified by:
sourceSetin interfaceVulkanCopyDescriptorSetType- Returns:
- The source set
-
sourceBinding
public int sourceBinding()- Specified by:
sourceBindingin interfaceVulkanCopyDescriptorSetType- Returns:
- The source binding
-
sourceArrayElement
public int sourceArrayElement()- Specified by:
sourceArrayElementin interfaceVulkanCopyDescriptorSetType- Returns:
- The source array element
-
destinationSet
- Specified by:
destinationSetin interfaceVulkanCopyDescriptorSetType- Returns:
- The destination set
-
destinationBinding
public int destinationBinding()- Specified by:
destinationBindingin interfaceVulkanCopyDescriptorSetType- Returns:
- The destination binding
-
destinationArrayElement
public int destinationArrayElement()- Specified by:
destinationArrayElementin interfaceVulkanCopyDescriptorSetType- Returns:
- The destination array element
-
descriptorCount
public int descriptorCount()- Specified by:
descriptorCountin interfaceVulkanCopyDescriptorSetType- Returns:
- The number of descriptors to copy from the source to destination
-
withSourceSet
Copy the current immutable object by setting a value for thesourceSetattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceSet- Returns:
- A modified copy of the
thisobject
-
withSourceBinding
Copy the current immutable object by setting a value for thesourceBindingattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceBinding- Returns:
- A modified copy of the
thisobject
-
withSourceArrayElement
Copy the current immutable object by setting a value for thesourceArrayElementattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceArrayElement- Returns:
- A modified copy of the
thisobject
-
withDestinationSet
Copy the current immutable object by setting a value for thedestinationSetattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for destinationSet- Returns:
- A modified copy of the
thisobject
-
withDestinationBinding
Copy the current immutable object by setting a value for thedestinationBindingattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for destinationBinding- Returns:
- A modified copy of the
thisobject
-
withDestinationArrayElement
Copy the current immutable object by setting a value for thedestinationArrayElementattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for destinationArrayElement- Returns:
- A modified copy of the
thisobject
-
withDescriptorCount
Copy the current immutable object by setting a value for thedescriptorCountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for descriptorCount- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanCopyDescriptorSet of(VulkanDescriptorSetType sourceSet, int sourceBinding, int sourceArrayElement, VulkanDescriptorSetType destinationSet, int destinationBinding, int destinationArrayElement, int descriptorCount) Construct a new immutableVulkanCopyDescriptorSetinstance.- Parameters:
sourceSet- The value for thesourceSetattributesourceBinding- The value for thesourceBindingattributesourceArrayElement- The value for thesourceArrayElementattributedestinationSet- The value for thedestinationSetattributedestinationBinding- The value for thedestinationBindingattributedestinationArrayElement- The value for thedestinationArrayElementattributedescriptorCount- The value for thedescriptorCountattribute- Returns:
- An immutable VulkanCopyDescriptorSet instance
-
copyOf
Creates an immutable copy of aVulkanCopyDescriptorSetTypevalue. 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 VulkanCopyDescriptorSet instance
-
builder
Creates a builder forVulkanCopyDescriptorSet.VulkanCopyDescriptorSet.builder() .setSourceSet(com.io7m.jcoronado.api.VulkanDescriptorSetType) // requiredsourceSet.setSourceBinding(int) // requiredsourceBinding.setSourceArrayElement(int) // requiredsourceArrayElement.setDestinationSet(com.io7m.jcoronado.api.VulkanDescriptorSetType) // requireddestinationSet.setDestinationBinding(int) // requireddestinationBinding.setDestinationArrayElement(int) // requireddestinationArrayElement.setDescriptorCount(int) // requireddescriptorCount.build();- Returns:
- A new VulkanCopyDescriptorSet builder
-