- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanCopyDescriptorSet
-
- All Implemented Interfaces:
VulkanCopyDescriptorSetType
public final class VulkanCopyDescriptorSet extends java.lang.Object implements VulkanCopyDescriptorSetType
- See Also:
- "VkCopyDescriptorSet"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanCopyDescriptorSet.Builder
Builds instances of typeVulkanCopyDescriptorSet
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanCopyDescriptorSet.Builder
builder()
Creates a builder forVulkanCopyDescriptorSet
.static VulkanCopyDescriptorSet
copyOf(VulkanCopyDescriptorSetType instance)
Creates an immutable copy of aVulkanCopyDescriptorSetType
value.int
descriptorCount()
int
destinationArrayElement()
int
destinationBinding()
VulkanDescriptorSetType
destinationSet()
boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanCopyDescriptorSet
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:sourceSet
,sourceBinding
,sourceArrayElement
,destinationSet
,destinationBinding
,destinationArrayElement
,descriptorCount
.static VulkanCopyDescriptorSet
of(VulkanDescriptorSetType sourceSet, int sourceBinding, int sourceArrayElement, VulkanDescriptorSetType destinationSet, int destinationBinding, int destinationArrayElement, int descriptorCount)
Construct a new immutableVulkanCopyDescriptorSet
instance.int
sourceArrayElement()
int
sourceBinding()
VulkanDescriptorSetType
sourceSet()
java.lang.String
toString()
Prints the immutable valueVulkanCopyDescriptorSet
with attribute values.VulkanCopyDescriptorSet
withDescriptorCount(int value)
Copy the current immutable object by setting a value for thedescriptorCount
attribute.VulkanCopyDescriptorSet
withDestinationArrayElement(int value)
Copy the current immutable object by setting a value for thedestinationArrayElement
attribute.VulkanCopyDescriptorSet
withDestinationBinding(int value)
Copy the current immutable object by setting a value for thedestinationBinding
attribute.VulkanCopyDescriptorSet
withDestinationSet(VulkanDescriptorSetType value)
Copy the current immutable object by setting a value for thedestinationSet
attribute.VulkanCopyDescriptorSet
withSourceArrayElement(int value)
Copy the current immutable object by setting a value for thesourceArrayElement
attribute.VulkanCopyDescriptorSet
withSourceBinding(int value)
Copy the current immutable object by setting a value for thesourceBinding
attribute.VulkanCopyDescriptorSet
withSourceSet(VulkanDescriptorSetType value)
Copy the current immutable object by setting a value for thesourceSet
attribute.
-
-
-
Method Detail
-
sourceSet
public VulkanDescriptorSetType sourceSet()
- Specified by:
sourceSet
in interfaceVulkanCopyDescriptorSetType
- Returns:
- The source set
-
sourceBinding
public int sourceBinding()
- Specified by:
sourceBinding
in interfaceVulkanCopyDescriptorSetType
- Returns:
- The source binding
-
sourceArrayElement
public int sourceArrayElement()
- Specified by:
sourceArrayElement
in interfaceVulkanCopyDescriptorSetType
- Returns:
- The source array element
-
destinationSet
public VulkanDescriptorSetType destinationSet()
- Specified by:
destinationSet
in interfaceVulkanCopyDescriptorSetType
- Returns:
- The destination set
-
destinationBinding
public int destinationBinding()
- Specified by:
destinationBinding
in interfaceVulkanCopyDescriptorSetType
- Returns:
- The destination binding
-
destinationArrayElement
public int destinationArrayElement()
- Specified by:
destinationArrayElement
in interfaceVulkanCopyDescriptorSetType
- Returns:
- The destination array element
-
descriptorCount
public int descriptorCount()
- Specified by:
descriptorCount
in interfaceVulkanCopyDescriptorSetType
- Returns:
- The number of descriptors to copy from the source to destination
-
withSourceSet
public final VulkanCopyDescriptorSet withSourceSet(VulkanDescriptorSetType value)
Copy the current immutable object by setting a value for thesourceSet
attribute. 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
this
object
-
withSourceBinding
public final VulkanCopyDescriptorSet withSourceBinding(int value)
Copy the current immutable object by setting a value for thesourceBinding
attribute. 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
this
object
-
withSourceArrayElement
public final VulkanCopyDescriptorSet withSourceArrayElement(int value)
Copy the current immutable object by setting a value for thesourceArrayElement
attribute. 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
this
object
-
withDestinationSet
public final VulkanCopyDescriptorSet withDestinationSet(VulkanDescriptorSetType value)
Copy the current immutable object by setting a value for thedestinationSet
attribute. 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
this
object
-
withDestinationBinding
public final VulkanCopyDescriptorSet withDestinationBinding(int value)
Copy the current immutable object by setting a value for thedestinationBinding
attribute. 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
this
object
-
withDestinationArrayElement
public final VulkanCopyDescriptorSet withDestinationArrayElement(int value)
Copy the current immutable object by setting a value for thedestinationArrayElement
attribute. 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
this
object
-
withDescriptorCount
public final VulkanCopyDescriptorSet withDescriptorCount(int value)
Copy the current immutable object by setting a value for thedescriptorCount
attribute. 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
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanCopyDescriptorSet
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:sourceSet
,sourceBinding
,sourceArrayElement
,destinationSet
,destinationBinding
,destinationArrayElement
,descriptorCount
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanCopyDescriptorSet
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanCopyDescriptorSet of(VulkanDescriptorSetType sourceSet, int sourceBinding, int sourceArrayElement, VulkanDescriptorSetType destinationSet, int destinationBinding, int destinationArrayElement, int descriptorCount)
Construct a new immutableVulkanCopyDescriptorSet
instance.- Parameters:
sourceSet
- The value for thesourceSet
attributesourceBinding
- The value for thesourceBinding
attributesourceArrayElement
- The value for thesourceArrayElement
attributedestinationSet
- The value for thedestinationSet
attributedestinationBinding
- The value for thedestinationBinding
attributedestinationArrayElement
- The value for thedestinationArrayElement
attributedescriptorCount
- The value for thedescriptorCount
attribute- Returns:
- An immutable VulkanCopyDescriptorSet instance
-
copyOf
public static VulkanCopyDescriptorSet copyOf(VulkanCopyDescriptorSetType instance)
Creates an immutable copy of aVulkanCopyDescriptorSetType
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 VulkanCopyDescriptorSet instance
-
builder
public static VulkanCopyDescriptorSet.Builder builder()
Creates a builder forVulkanCopyDescriptorSet
.- Returns:
- A new VulkanCopyDescriptorSet builder
-
-