Class VulkanPipelineRenderingCreateInfo.Builder
java.lang.Object
com.io7m.jcoronado.api.VulkanPipelineRenderingCreateInfo.Builder
- Enclosing class:
VulkanPipelineRenderingCreateInfo
Builds instances of type
VulkanPipelineRenderingCreateInfo.
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 TypeMethodDescriptionaddAllColorAttachmentFormats(Iterable<? extends VulkanFormat> elements) Adds elements tocolorAttachmentFormatslist.addColorAttachmentFormats(VulkanFormat element) Adds one element tocolorAttachmentFormatslist.addColorAttachmentFormats(VulkanFormat... elements) Adds elements tocolorAttachmentFormatslist.build()Builds a newVulkanPipelineRenderingCreateInfo.from(VulkanPipelineRenderingCreateInfoType instance) Fill a builder with attribute values from the providedVulkanPipelineRenderingCreateInfoTypeinstance.setColorAttachmentFormats(Iterable<? extends VulkanFormat> elements) Sets or replaces all elements forcolorAttachmentFormatslist.setDepthAttachmentFormat(VulkanFormat depthAttachmentFormat) Initializes the optional valuedepthAttachmentFormatto depthAttachmentFormat.setDepthAttachmentFormat(Optional<? extends VulkanFormat> depthAttachmentFormat) Initializes the optional valuedepthAttachmentFormatto depthAttachmentFormat.setStencilAttachmentFormat(VulkanFormat stencilAttachmentFormat) Initializes the optional valuestencilAttachmentFormatto stencilAttachmentFormat.setStencilAttachmentFormat(Optional<? extends VulkanFormat> stencilAttachmentFormat) Initializes the optional valuestencilAttachmentFormatto stencilAttachmentFormat.setViewMask(long viewMask) Initializes the value for theviewMaskattribute.
-
Method Details
-
from
public final VulkanPipelineRenderingCreateInfo.Builder from(VulkanPipelineRenderingCreateInfoType instance) Fill a builder with attribute values from the providedVulkanPipelineRenderingCreateInfoTypeinstance. 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
-
addColorAttachmentFormats
public final VulkanPipelineRenderingCreateInfo.Builder addColorAttachmentFormats(VulkanFormat element) Adds one element tocolorAttachmentFormatslist.- Parameters:
element- A colorAttachmentFormats element- Returns:
thisbuilder for use in a chained invocation
-
addColorAttachmentFormats
public final VulkanPipelineRenderingCreateInfo.Builder addColorAttachmentFormats(VulkanFormat... elements) Adds elements tocolorAttachmentFormatslist.- Parameters:
elements- An array of colorAttachmentFormats elements- Returns:
thisbuilder for use in a chained invocation
-
setColorAttachmentFormats
public final VulkanPipelineRenderingCreateInfo.Builder setColorAttachmentFormats(Iterable<? extends VulkanFormat> elements) Sets or replaces all elements forcolorAttachmentFormatslist.- Parameters:
elements- An iterable of colorAttachmentFormats elements- Returns:
thisbuilder for use in a chained invocation
-
addAllColorAttachmentFormats
public final VulkanPipelineRenderingCreateInfo.Builder addAllColorAttachmentFormats(Iterable<? extends VulkanFormat> elements) Adds elements tocolorAttachmentFormatslist.- Parameters:
elements- An iterable of colorAttachmentFormats elements- Returns:
thisbuilder for use in a chained invocation
-
setDepthAttachmentFormat
public final VulkanPipelineRenderingCreateInfo.Builder setDepthAttachmentFormat(VulkanFormat depthAttachmentFormat) Initializes the optional valuedepthAttachmentFormatto depthAttachmentFormat.- Parameters:
depthAttachmentFormat- The value for depthAttachmentFormat- Returns:
thisbuilder for chained invocation
-
setDepthAttachmentFormat
public final VulkanPipelineRenderingCreateInfo.Builder setDepthAttachmentFormat(Optional<? extends VulkanFormat> depthAttachmentFormat) Initializes the optional valuedepthAttachmentFormatto depthAttachmentFormat.- Parameters:
depthAttachmentFormat- The value for depthAttachmentFormat- Returns:
thisbuilder for use in a chained invocation
-
setStencilAttachmentFormat
public final VulkanPipelineRenderingCreateInfo.Builder setStencilAttachmentFormat(VulkanFormat stencilAttachmentFormat) Initializes the optional valuestencilAttachmentFormatto stencilAttachmentFormat.- Parameters:
stencilAttachmentFormat- The value for stencilAttachmentFormat- Returns:
thisbuilder for chained invocation
-
setStencilAttachmentFormat
public final VulkanPipelineRenderingCreateInfo.Builder setStencilAttachmentFormat(Optional<? extends VulkanFormat> stencilAttachmentFormat) Initializes the optional valuestencilAttachmentFormatto stencilAttachmentFormat.- Parameters:
stencilAttachmentFormat- The value for stencilAttachmentFormat- Returns:
thisbuilder for use in a chained invocation
-
setViewMask
-
build
Builds a newVulkanPipelineRenderingCreateInfo.- Returns:
- An immutable instance of VulkanPipelineRenderingCreateInfo
- Throws:
IllegalStateException- if any required attributes are missing
-