public static final class R2DepthOnlyBufferDescription.Builder extends Object
R2DepthOnlyBufferDescription.
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 |
|---|---|
R2DepthOnlyBufferDescription |
build()
Builds a new
R2DepthOnlyBufferDescription. |
R2DepthOnlyBufferDescription.Builder |
from(R2DepthOnlyBufferDescriptionType instance)
Fill a builder with attribute values from the provided
com.io7m.r2.core.R2DepthOnlyBufferDescriptionType instance. |
R2DepthOnlyBufferDescription.Builder |
from(R2RenderTargetDescriptionType instance)
Fill a builder with attribute values from the provided
com.io7m.r2.core.R2RenderTargetDescriptionType instance. |
R2DepthOnlyBufferDescription.Builder |
setArea(com.io7m.jareas.core.AreaInclusiveUnsignedLType area)
Initializes the value for the
area attribute. |
R2DepthOnlyBufferDescription.Builder |
setDepthPrecision(R2DepthPrecision depthPrecision)
Initializes the value for the
depthPrecision attribute. |
public final R2DepthOnlyBufferDescription.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 R2DepthOnlyBufferDescription.Builder from(R2DepthOnlyBufferDescriptionType instance)
com.io7m.r2.core.R2DepthOnlyBufferDescriptionType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final R2DepthOnlyBufferDescription.Builder setDepthPrecision(R2DepthPrecision depthPrecision)
depthPrecision attribute.
If not set, this attribute will have a default value as returned by the initializer of depthPrecision.
depthPrecision - The value for depthPrecisionthis builder for use in a chained invocationpublic final R2DepthOnlyBufferDescription.Builder setArea(com.io7m.jareas.core.AreaInclusiveUnsignedLType area)
area attribute.area - The value for areathis builder for use in a chained invocationpublic R2DepthOnlyBufferDescription build()
R2DepthOnlyBufferDescription.IllegalStateException - if any required attributes are missingCopyright © 2016 <code@io7m.com> http://io7m.com