Class VulkanDescriptorPoolSize
java.lang.Object
com.io7m.jcoronado.api.VulkanDescriptorPoolSize
- All Implemented Interfaces:
VulkanDescriptorPoolSizeType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanDescriptorPoolSize. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanDescriptorPoolSize.static VulkanDescriptorPoolSizecopyOf(VulkanDescriptorPoolSizeType instance) Creates an immutable copy of aVulkanDescriptorPoolSizeTypevalue.intbooleanThis instance is equal to all instances ofVulkanDescriptorPoolSizethat have equal attribute values.inthashCode()Computes a hash code from attributes:type,descriptorCount.toString()Prints the immutable valueVulkanDescriptorPoolSizewith attribute values.type()final VulkanDescriptorPoolSizewithDescriptorCount(int value) Copy the current immutable object by setting a value for thedescriptorCountattribute.final VulkanDescriptorPoolSizewithType(VulkanDescriptorType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
type
- Specified by:
typein interfaceVulkanDescriptorPoolSizeType- Returns:
- The type of descriptor.
-
descriptorCount
public int descriptorCount()- Specified by:
descriptorCountin interfaceVulkanDescriptorPoolSizeType- Returns:
- The number of descriptors of that type to allocate.
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or 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 or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanDescriptorPoolSizeTypevalue. 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 VulkanDescriptorPoolSize instance
-
builder
Creates a builder forVulkanDescriptorPoolSize.VulkanDescriptorPoolSize.builder() .setType(com.io7m.jcoronado.api.VulkanDescriptorType) // required
type.setDescriptorCount(int) // optionaldescriptorCount.build();- Returns:
- A new VulkanDescriptorPoolSize builder
-