- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanCommandBufferCreateInfo
-
- All Implemented Interfaces:
VulkanCommandBufferCreateInfoType
public final class VulkanCommandBufferCreateInfo extends java.lang.Object implements VulkanCommandBufferCreateInfoType
Structure specifying parameters of a newly created command buffer.- See Also:
- "VkCommandBufferAllocateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanCommandBufferCreateInfo.Builder
Builds instances of typeVulkanCommandBufferCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanCommandBufferCreateInfo.Builder
builder()
Creates a builder forVulkanCommandBufferCreateInfo
.static VulkanCommandBufferCreateInfo
copyOf(VulkanCommandBufferCreateInfoType instance)
Creates an immutable copy of aVulkanCommandBufferCreateInfoType
value.int
count()
boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanCommandBufferCreateInfo
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:pool
,level
,count
.VulkanCommandBufferLevel
level()
static VulkanCommandBufferCreateInfo
of(VulkanCommandPoolType pool, VulkanCommandBufferLevel level, int count)
Construct a new immutableVulkanCommandBufferCreateInfo
instance.VulkanCommandPoolType
pool()
java.lang.String
toString()
Prints the immutable valueVulkanCommandBufferCreateInfo
with attribute values.VulkanCommandBufferCreateInfo
withCount(int value)
Copy the current immutable object by setting a value for thecount
attribute.VulkanCommandBufferCreateInfo
withLevel(VulkanCommandBufferLevel value)
Copy the current immutable object by setting a value for thelevel
attribute.VulkanCommandBufferCreateInfo
withPool(VulkanCommandPoolType value)
Copy the current immutable object by setting a value for thepool
attribute.
-
-
-
Method Detail
-
pool
public VulkanCommandPoolType pool()
- Specified by:
pool
in interfaceVulkanCommandBufferCreateInfoType
- Returns:
- The command pool
-
level
public VulkanCommandBufferLevel level()
- Specified by:
level
in interfaceVulkanCommandBufferCreateInfoType
- Returns:
- The command buffer level
-
count
public int count()
- Specified by:
count
in interfaceVulkanCommandBufferCreateInfoType
- Returns:
- The number of command buffers to allocate from the pool.
-
withPool
public final VulkanCommandBufferCreateInfo withPool(VulkanCommandPoolType value)
Copy the current immutable object by setting a value for thepool
attribute. 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 of the
this
object
-
withLevel
public final VulkanCommandBufferCreateInfo withLevel(VulkanCommandBufferLevel value)
Copy the current immutable object by setting a value for thelevel
attribute. 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 of the
this
object
-
withCount
public final VulkanCommandBufferCreateInfo withCount(int value)
Copy the current immutable object by setting a value for thecount
attribute. 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 of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanCommandBufferCreateInfo
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:pool
,level
,count
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanCommandBufferCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanCommandBufferCreateInfo of(VulkanCommandPoolType pool, VulkanCommandBufferLevel level, int count)
Construct a new immutableVulkanCommandBufferCreateInfo
instance.- Parameters:
pool
- The value for thepool
attributelevel
- The value for thelevel
attributecount
- The value for thecount
attribute- Returns:
- An immutable VulkanCommandBufferCreateInfo instance
-
copyOf
public static VulkanCommandBufferCreateInfo copyOf(VulkanCommandBufferCreateInfoType instance)
Creates an immutable copy of aVulkanCommandBufferCreateInfoType
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 VulkanCommandBufferCreateInfo instance
-
builder
public static VulkanCommandBufferCreateInfo.Builder builder()
Creates a builder forVulkanCommandBufferCreateInfo
.- Returns:
- A new VulkanCommandBufferCreateInfo builder
-
-