Page Summary
-
Texture.Samplercontrols the settings for sampling textures during rendering in Sceneform. -
It provides options for magnification and minification filtering, as well as wrap modes for texture coordinates.
-
Developers can use a
Texture.Sampler.Builderto constructSamplerobjects with specific settings. -
Texture.Samplerincludes methods to retrieve the configured magnification filter, minification filter, and wrap modes for each texture coordinate (R, S, T).
Controls what settings are used to sample Textures when rendering.
Nested Classes
Public Methods
| static Texture.Sampler.Builder | builder
()
|
| Texture.Sampler.MagFilter | getMagFilter
()
Get the magnification function used whenever the level-of-detail function determines that the
texture should be magnified.
|
| Texture.Sampler.MinFilter | getMinFilter
()
Get the minifying function used whenever the level-of-detail function determines that the
texture should be minified.
|
| Texture.Sampler.WrapMode | |
| Texture.Sampler.WrapMode | |
| Texture.Sampler.WrapMode |
Inherited Methods
Public Methods
public static Texture.Sampler.Builder builder ()
public Texture.Sampler.MagFilter getMagFilter ()
Get the magnification function used whenever the level-of-detail function determines that the texture should be magnified.
public Texture.Sampler.MinFilter getMinFilter ()
Get the minifying function used whenever the level-of-detail function determines that the texture should be minified.
public Texture.Sampler.WrapMode getWrapModeR ()
Get the wrap mode for texture coordinate R. The wrap mode determines how a texture is rendered for uv coordinates outside the range of [0, 1].
public Texture.Sampler.WrapMode getWrapModeS ()
Get the wrap mode for texture coordinate S. The wrap mode determines how a texture is rendered for uv coordinates outside the range of [0, 1].
public Texture.Sampler.WrapMode getWrapModeT ()
Get the wrap mode for texture coordinate T. The wrap mode determines how a texture is rendered for uv coordinates outside the range of [0, 1].

