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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
SamplerBinding | of(ITexture texture, TextureSampling sampling) factory | Pairs the texture with its sampling. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
ITexture | getTexture() | Returns the texture to bind. |
TextureSampling | getSampling() | Returns the filter, the wrap and the mipmap flag to sample with. |
Creation details
Section titled “Creation details”SamplerBinding of(ITexture texture, TextureSampling sampling) factory
Pairs the texture with its sampling.
Method details
Section titled “Method details”getTexture
Section titled “getTexture”ITexture getTexture()
Returns the texture to bind.
getSampling
Section titled “getSampling”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
