Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanCommandBufferCreateInfo.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanCommandBufferCreateInfo.Builder
-
- Enclosing class:
- VulkanCommandBufferCreateInfo
public static final class VulkanCommandBufferCreateInfo.Builder extends java.lang.Object
Builds instances of typeVulkanCommandBufferCreateInfo
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.Builder
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VulkanCommandBufferCreateInfo
build()
Builds a newVulkanCommandBufferCreateInfo
.VulkanCommandBufferCreateInfo.Builder
from(VulkanCommandBufferCreateInfoType instance)
Fill a builder with attribute values from the providedVulkanCommandBufferCreateInfoType
instance.VulkanCommandBufferCreateInfo.Builder
setCount(int count)
Initializes the value for thecount
attribute.VulkanCommandBufferCreateInfo.Builder
setLevel(VulkanCommandBufferLevel level)
Initializes the value for thelevel
attribute.VulkanCommandBufferCreateInfo.Builder
setPool(VulkanCommandPoolType pool)
Initializes the value for thepool
attribute.
-
-
-
Method Detail
-
from
public final VulkanCommandBufferCreateInfo.Builder from(VulkanCommandBufferCreateInfoType instance)
Fill a builder with attribute values from the providedVulkanCommandBufferCreateInfoType
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setPool
public final VulkanCommandBufferCreateInfo.Builder setPool(VulkanCommandPoolType pool)
Initializes the value for thepool
attribute.- Parameters:
pool
- The value for pool- Returns:
this
builder for use in a chained invocation
-
setLevel
public final VulkanCommandBufferCreateInfo.Builder setLevel(VulkanCommandBufferLevel level)
Initializes the value for thelevel
attribute.- Parameters:
level
- The value for level- Returns:
this
builder for use in a chained invocation
-
setCount
public final VulkanCommandBufferCreateInfo.Builder setCount(int count)
Initializes the value for thecount
attribute.- Parameters:
count
- The value for count- Returns:
this
builder for use in a chained invocation
-
build
public VulkanCommandBufferCreateInfo build()
Builds a newVulkanCommandBufferCreateInfo
.- Returns:
- An immutable instance of VulkanCommandBufferCreateInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-