Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Class VulkanRenderPassBeginInfo.Builder
- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanRenderPassBeginInfo.Builder
-
- Enclosing class:
- VulkanRenderPassBeginInfo
public static final class VulkanRenderPassBeginInfo.Builder extends java.lang.Object
Builds instances of typeVulkanRenderPassBeginInfo
. 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
-
-
-
Method Detail
-
from
public final VulkanRenderPassBeginInfo.Builder from(VulkanRenderPassBeginInfoType instance)
Fill a builder with attribute values from the providedVulkanRenderPassBeginInfoType
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setRenderPass
public final VulkanRenderPassBeginInfo.Builder setRenderPass(VulkanRenderPassType renderPass)
Initializes the value for therenderPass
attribute.- Parameters:
renderPass
- The value for renderPass- Returns:
this
builder for use in a chained invocation
-
setFramebuffer
public final VulkanRenderPassBeginInfo.Builder setFramebuffer(VulkanFramebufferType framebuffer)
Initializes the value for theframebuffer
attribute.- Parameters:
framebuffer
- The value for framebuffer- Returns:
this
builder for use in a chained invocation
-
setRenderArea
public final VulkanRenderPassBeginInfo.Builder setRenderArea(VulkanRectangle2D renderArea)
Initializes the value for therenderArea
attribute.- Parameters:
renderArea
- The value for renderArea- Returns:
this
builder for use in a chained invocation
-
addClearValues
public final VulkanRenderPassBeginInfo.Builder addClearValues(VulkanClearValueType element)
Adds one element toclearValues
list.- Parameters:
element
- A clearValues element- Returns:
this
builder for use in a chained invocation
-
addClearValues
public final VulkanRenderPassBeginInfo.Builder addClearValues(VulkanClearValueType... elements)
Adds elements toclearValues
list.- Parameters:
elements
- An array of clearValues elements- Returns:
this
builder for use in a chained invocation
-
setClearValues
public final VulkanRenderPassBeginInfo.Builder setClearValues(java.lang.Iterable<? extends VulkanClearValueType> elements)
Sets or replaces all elements forclearValues
list.- Parameters:
elements
- An iterable of clearValues elements- Returns:
this
builder for use in a chained invocation
-
addAllClearValues
public final VulkanRenderPassBeginInfo.Builder addAllClearValues(java.lang.Iterable<? extends VulkanClearValueType> elements)
Adds elements toclearValues
list.- Parameters:
elements
- An iterable of clearValues elements- Returns:
this
builder for use in a chained invocation
-
build
public VulkanRenderPassBeginInfo build()
Builds a newVulkanRenderPassBeginInfo
.- Returns:
- An immutable instance of VulkanRenderPassBeginInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-