Skip to content

SamplerBinding

final class SamplerBinding
Package: dev.joid.lib.bridge.render.shader · Module: core · Source: SamplerBinding.java

A texture to bind on the unit of a sampler, with the filter and the wrap to sample it with.

ReturnsSignatureSummary
SamplerBindingof(ITexture texture, TextureSampling sampling) factoryPairs the texture with its sampling.

ReturnsSignatureSummary
ITexturegetTexture()Returns the texture to bind.
TextureSamplinggetSampling()Returns the filter, the wrap and the mipmap flag to sample with.

SamplerBinding of(ITexture texture, TextureSampling sampling) factory

Pairs the texture with its sampling.

ITexture getTexture()

Returns the texture to bind.

TextureSampling getSampling()

Returns the filter, the wrap and the mipmap flag to sample with.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page