Class VulkanRenderPassBeginInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanRenderPassBeginInfo.Builder
- Enclosing class:
VulkanRenderPassBeginInfo
Builds instances of type
VulkanRenderPassBeginInfo.
Initialize attributes and then invoke the build() 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
Modifier and TypeMethodDescriptionaddAllClearValues(Iterable<? extends VulkanClearValueType> elements) Adds elements toclearValueslist.addClearValues(VulkanClearValueType element) Adds one element toclearValueslist.addClearValues(VulkanClearValueType... elements) Adds elements toclearValueslist.build()Builds a newVulkanRenderPassBeginInfo.from(VulkanRenderPassBeginInfoType instance) Fill a builder with attribute values from the providedVulkanRenderPassBeginInfoTypeinstance.setClearValues(Iterable<? extends VulkanClearValueType> elements) Sets or replaces all elements forclearValueslist.setFramebuffer(VulkanFramebufferType framebuffer) Initializes the value for theframebufferattribute.setRenderArea(VulkanRectangle2D renderArea) Initializes the value for therenderAreaattribute.setRenderPass(VulkanRenderPassType renderPass) Initializes the value for therenderPassattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVulkanRenderPassBeginInfoTypeinstance. 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:
thisbuilder for use in a chained invocation
-
setRenderPass
Initializes the value for therenderPassattribute.- Parameters:
renderPass- The value for renderPass- Returns:
thisbuilder for use in a chained invocation
-
setFramebuffer
Initializes the value for theframebufferattribute.- Parameters:
framebuffer- The value for framebuffer- Returns:
thisbuilder for use in a chained invocation
-
setRenderArea
Initializes the value for therenderAreaattribute.- Parameters:
renderArea- The value for renderArea- Returns:
thisbuilder for use in a chained invocation
-
addClearValues
Adds one element toclearValueslist.- Parameters:
element- A clearValues element- Returns:
thisbuilder for use in a chained invocation
-
addClearValues
Adds elements toclearValueslist.- Parameters:
elements- An array of clearValues elements- Returns:
thisbuilder for use in a chained invocation
-
setClearValues
public final VulkanRenderPassBeginInfo.Builder setClearValues(Iterable<? extends VulkanClearValueType> elements) Sets or replaces all elements forclearValueslist.- Parameters:
elements- An iterable of clearValues elements- Returns:
thisbuilder for use in a chained invocation
-
addAllClearValues
public final VulkanRenderPassBeginInfo.Builder addAllClearValues(Iterable<? extends VulkanClearValueType> elements) Adds elements toclearValueslist.- Parameters:
elements- An iterable of clearValues elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVulkanRenderPassBeginInfo.- Returns:
- An immutable instance of VulkanRenderPassBeginInfo
- Throws:
IllegalStateException- if any required attributes are missing
-