public static final class R2LightBufferDescription.Builder extends Object
R2LightBufferDescription
.
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 |
---|---|
R2LightBufferDescription |
build()
Builds a new
R2LightBufferDescription . |
R2LightBufferDescription.Builder |
from(R2LightBufferDescriptionType instance)
Fill a builder with attribute values from the provided
com.io7m.r2.core.R2LightBufferDescriptionType instance. |
R2LightBufferDescription.Builder |
from(R2RenderTargetDescriptionType instance)
Fill a builder with attribute values from the provided
com.io7m.r2.core.R2RenderTargetDescriptionType instance. |
R2LightBufferDescription.Builder |
setArea(com.io7m.jregions.core.unparameterized.sizes.AreaSizeL area)
Initializes the value for the
area attribute. |
R2LightBufferDescription.Builder |
setComponents(R2LightBufferComponents components)
Initializes the value for the
components attribute. |
public final R2LightBufferDescription.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 R2LightBufferDescription.Builder from(R2LightBufferDescriptionType instance)
com.io7m.r2.core.R2LightBufferDescriptionType
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final R2LightBufferDescription.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 R2LightBufferDescription.Builder setComponents(R2LightBufferComponents components)
components
attribute.
If not set, this attribute will have a default value as returned by the initializer of components
.
components
- The value for componentsthis
builder for use in a chained invocationpublic R2LightBufferDescription build()
R2LightBufferDescription
.IllegalStateException
- if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com