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