public static final class R2FilterBilateralBlurDepthAwareParameters.Builder<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> extends Object
R2FilterBilateralBlurDepthAwareParameters
.
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.
public final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> from(R2FilterBilateralBlurDepthAwareParametersType<SD,S,DD,D> instance)
R2FilterBilateralBlurDepthAwareParametersType
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> setSourceRenderTarget(S sourceRenderTarget)
sourceRenderTarget
attribute.sourceRenderTarget
- The value for sourceRenderTargetthis
builder for use in a chained invocationpublic final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> setSourceTextureSelector(Function<S,R2Texture2DUsableType> sourceTextureSelector)
sourceTextureSelector
attribute.sourceTextureSelector
- The value for sourceTextureSelectorthis
builder for use in a chained invocationpublic final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> setOutputRenderTarget(D outputRenderTarget)
outputRenderTarget
attribute.outputRenderTarget
- The value for outputRenderTargetthis
builder for use in a chained invocationpublic final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> setOutputTextureSelector(Function<D,R2Texture2DUsableType> outputTextureSelector)
outputTextureSelector
attribute.outputTextureSelector
- The value for outputTextureSelectorthis
builder for use in a chained invocationpublic final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> setRenderTargetPool(R2RenderTargetPoolUsableType<DD,D> renderTargetPool)
renderTargetPool
attribute.renderTargetPool
- The value for renderTargetPoolthis
builder for use in a chained invocationpublic final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> setOutputDescriptionScaler(BiFunction<DD,com.io7m.jregions.core.unparameterized.sizes.AreaSizeL,DD> outputDescriptionScaler)
outputDescriptionScaler
attribute.outputDescriptionScaler
- The value for outputDescriptionScalerthis
builder for use in a chained invocationpublic final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> setSceneObserverValues(R2MatricesObserverValuesType sceneObserverValues)
sceneObserverValues
attribute.sceneObserverValues
- The value for sceneObserverValuesthis
builder for use in a chained invocationpublic final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> setDepthTexture(R2Texture2DUsableType depthTexture)
depthTexture
attribute.depthTexture
- The value for depthTexturethis
builder for use in a chained invocationpublic final R2FilterBilateralBlurDepthAwareParameters.Builder<SD,S,DD,D> setBlurParameters(R2BilateralBlurParameters blurParameters)
blurParameters
attribute.
If not set, this attribute will have a default value as returned by the initializer of blurParameters
.
blurParameters
- The value for blurParametersthis
builder for use in a chained invocationpublic R2FilterBilateralBlurDepthAwareParameters<SD,S,DD,D> build()
R2FilterBilateralBlurDepthAwareParameters
.IllegalStateException
- if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com