Class VulkanCommandBufferCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanCommandBufferCreateInfo
- All Implemented Interfaces:
VulkanCommandBufferCreateInfoType
public final class VulkanCommandBufferCreateInfo
extends Object
implements VulkanCommandBufferCreateInfoType
Structure specifying parameters of a newly created command buffer.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanCommandBufferCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanCommandBufferCreateInfo.copyOf(VulkanCommandBufferCreateInfoType instance) Creates an immutable copy of aVulkanCommandBufferCreateInfoTypevalue.intcount()booleanThis instance is equal to all instances ofVulkanCommandBufferCreateInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:pool,level,count.level()pool()toString()Prints the immutable valueVulkanCommandBufferCreateInfowith attribute values.withCount(int value) Copy the current immutable object by setting a value for thecountattribute.Copy the current immutable object by setting a value for thelevelattribute.withPool(VulkanCommandPoolType value) Copy the current immutable object by setting a value for thepoolattribute.
-
Method Details
-
pool
- Specified by:
poolin interfaceVulkanCommandBufferCreateInfoType- Returns:
- The command pool
-
level
- Specified by:
levelin interfaceVulkanCommandBufferCreateInfoType- Returns:
- The command buffer level
-
count
public int count()- Specified by:
countin interfaceVulkanCommandBufferCreateInfoType- Returns:
- The number of command buffers to allocate from the pool.
-
withPool
Copy the current immutable object by setting a value for thepoolattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pool- Returns:
- A modified copy or the
thisobject
-
withLevel
Copy the current immutable object by setting a value for thelevelattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for level- Returns:
- A modified copy or the
thisobject
-
withCount
Copy the current immutable object by setting a value for thecountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for count- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanCommandBufferCreateInfoTypevalue. 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 VulkanCommandBufferCreateInfo instance
-
builder
Creates a builder forVulkanCommandBufferCreateInfo.VulkanCommandBufferCreateInfo.builder() .setPool(com.io7m.jcoronado.api.VulkanCommandPoolType) // required
pool.setLevel(com.io7m.jcoronado.api.VulkanCommandBufferLevel) // optionallevel.setCount(int) // optionalcount.build();- Returns:
- A new VulkanCommandBufferCreateInfo builder
-