public static final class R2MaskBufferDescription.Builder extends Object
R2MaskBufferDescription.
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.
| Modifier and Type | Method and Description |
|---|---|
R2MaskBufferDescription |
build()
Builds a new
R2MaskBufferDescription. |
R2MaskBufferDescription.Builder |
from(R2MaskBufferDescriptionType instance)
Fill a builder with attribute values from the provided
com.io7m.r2.core.R2MaskBufferDescriptionType instance. |
R2MaskBufferDescription.Builder |
from(R2RenderTargetDescriptionType instance)
Fill a builder with attribute values from the provided
com.io7m.r2.core.R2RenderTargetDescriptionType instance. |
R2MaskBufferDescription.Builder |
setArea(com.io7m.jareas.core.AreaInclusiveUnsignedLType area)
Initializes the value for the
area attribute. |
R2MaskBufferDescription.Builder |
setDepthAttachment(Optional<R2DepthAttachmentSpecificationType> depthAttachment)
Initializes the optional value
depthAttachment to depthAttachment. |
R2MaskBufferDescription.Builder |
setDepthAttachment(R2DepthAttachmentSpecificationType depthAttachment)
Initializes the optional value
depthAttachment to depthAttachment. |
public final R2MaskBufferDescription.Builder from(R2RenderTargetDescriptionType instance)
com.io7m.r2.core.R2RenderTargetDescriptionType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final R2MaskBufferDescription.Builder from(R2MaskBufferDescriptionType instance)
com.io7m.r2.core.R2MaskBufferDescriptionType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final R2MaskBufferDescription.Builder setArea(com.io7m.jareas.core.AreaInclusiveUnsignedLType area)
area attribute.area - The value for areathis builder for use in a chained invocationpublic final R2MaskBufferDescription.Builder setDepthAttachment(R2DepthAttachmentSpecificationType depthAttachment)
depthAttachment to depthAttachment.depthAttachment - The value for depthAttachmentthis builder for chained invocationpublic final R2MaskBufferDescription.Builder setDepthAttachment(Optional<R2DepthAttachmentSpecificationType> depthAttachment)
depthAttachment to depthAttachment.depthAttachment - The value for depthAttachmentthis builder for use in a chained invocationpublic R2MaskBufferDescription build()
R2MaskBufferDescription.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com