TextureSampler

actual class TextureSampler

TextureSampler defines how a texture is accessed during rendering.

It specifies filtering modes, wrapping modes, and optional comparison modes for texture sampling. TextureSampler objects are immutable after construction and are used by MaterialInstance to configure how textures are sampled.

expect class TextureSampler

TextureSampler defines how a texture is accessed during rendering.

It specifies filtering modes, wrapping modes, and optional comparison modes for texture sampling. TextureSampler objects are immutable after construction and are used by MaterialInstance to configure how textures are sampled.

actual class TextureSampler

TextureSampler defines how a texture is accessed during rendering.

It specifies filtering modes, wrapping modes, and optional comparison modes for texture sampling. TextureSampler objects are immutable after construction and are used by MaterialInstance to configure how textures are sampled.

actual class TextureSampler

TextureSampler defines how a texture is accessed during rendering.

It specifies filtering modes, wrapping modes, and optional comparison modes for texture sampling. TextureSampler objects are immutable after construction and are used by MaterialInstance to configure how textures are sampled.

actual class TextureSampler

TextureSampler defines how a texture is accessed during rendering.

It specifies filtering modes, wrapping modes, and optional comparison modes for texture sampling. TextureSampler objects are immutable after construction and are used by MaterialInstance to configure how textures are sampled.

Constructors

Link copied to clipboard
actual constructor()

Creates a TextureSampler with default parameters:

actual constructor(minMag: TextureSampler.MagFilter)

Creates a TextureSampler with default parameters but setting both minification and magnification filters, and using CLAMP_TO_EDGE wrap mode for all axes.

actual constructor(minMag: TextureSampler.MagFilter, wrap: TextureSampler.WrapMode)

Creates a TextureSampler with filtering and wrap mode applied to all axes.

Creates a TextureSampler with separate minification and magnification filters, and a wrap mode applied to all axes.

Creates a TextureSampler with separate filters and wrap modes for each axis.

actual constructor(mode: TextureSampler.CompareMode)

Creates a TextureSampler configured for comparison mode (shadow mapping).

actual constructor(mode: TextureSampler.CompareMode, function: TextureSampler.CompareFunction)

Creates a TextureSampler configured for comparison mode with a specific comparison function.

expect constructor()

Creates a TextureSampler with default parameters:

expect constructor(minMag: TextureSampler.MagFilter)

Creates a TextureSampler with default parameters but setting both minification and magnification filters, and using CLAMP_TO_EDGE wrap mode for all axes.

expect constructor(minMag: TextureSampler.MagFilter, wrap: TextureSampler.WrapMode)

Creates a TextureSampler with filtering and wrap mode applied to all axes.

Creates a TextureSampler with separate minification and magnification filters, and a wrap mode applied to all axes.

Creates a TextureSampler with separate filters and wrap modes for each axis.

expect constructor(mode: TextureSampler.CompareMode)

Creates a TextureSampler configured for comparison mode (shadow mapping).

expect constructor(mode: TextureSampler.CompareMode, function: TextureSampler.CompareFunction)

Creates a TextureSampler configured for comparison mode with a specific comparison function.

actual constructor()

Creates a TextureSampler with default parameters:

actual constructor(minMag: TextureSampler.MagFilter)

Creates a TextureSampler with default parameters but setting both minification and magnification filters, and using CLAMP_TO_EDGE wrap mode for all axes.

actual constructor(minMag: TextureSampler.MagFilter, wrap: TextureSampler.WrapMode)

Creates a TextureSampler with filtering and wrap mode applied to all axes.

Creates a TextureSampler with separate minification and magnification filters, and a wrap mode applied to all axes.

Creates a TextureSampler with separate filters and wrap modes for each axis.

actual constructor(mode: TextureSampler.CompareMode)

Creates a TextureSampler configured for comparison mode (shadow mapping).

actual constructor(mode: TextureSampler.CompareMode, function: TextureSampler.CompareFunction)

Creates a TextureSampler configured for comparison mode with a specific comparison function.

actual constructor()

Creates a TextureSampler with default parameters:

actual constructor(minMag: TextureSampler.MagFilter)

Creates a TextureSampler with default parameters but setting both minification and magnification filters, and using CLAMP_TO_EDGE wrap mode for all axes.

actual constructor(minMag: TextureSampler.MagFilter, wrap: TextureSampler.WrapMode)

Creates a TextureSampler with filtering and wrap mode applied to all axes.

Creates a TextureSampler with separate minification and magnification filters, and a wrap mode applied to all axes.

Creates a TextureSampler with separate filters and wrap modes for each axis.

actual constructor(mode: TextureSampler.CompareMode)

Creates a TextureSampler configured for comparison mode (shadow mapping).

actual constructor(mode: TextureSampler.CompareMode, function: TextureSampler.CompareFunction)

Creates a TextureSampler configured for comparison mode with a specific comparison function.

actual constructor()

Creates a TextureSampler with default parameters:

actual constructor(minMag: TextureSampler.MagFilter)

Creates a TextureSampler with default parameters but setting both minification and magnification filters, and using CLAMP_TO_EDGE wrap mode for all axes.

actual constructor(minMag: TextureSampler.MagFilter, wrap: TextureSampler.WrapMode)

Creates a TextureSampler with filtering and wrap mode applied to all axes.

Creates a TextureSampler with separate minification and magnification filters, and a wrap mode applied to all axes.

Creates a TextureSampler with separate filters and wrap modes for each axis.

actual constructor(mode: TextureSampler.CompareMode)

Creates a TextureSampler configured for comparison mode (shadow mapping).

actual constructor(mode: TextureSampler.CompareMode, function: TextureSampler.CompareFunction)

Creates a TextureSampler configured for comparison mode with a specific comparison function.

Types

Link copied to clipboard

Comparison function for depth comparison operations in COMPARE_TO_TEXTURE mode.

Comparison function for depth comparison operations in COMPARE_TO_TEXTURE mode.

Comparison function for depth comparison operations in COMPARE_TO_TEXTURE mode.

Comparison function for depth comparison operations in COMPARE_TO_TEXTURE mode.

Comparison function for depth comparison operations in COMPARE_TO_TEXTURE mode.

Link copied to clipboard

Compare mode for shadow map sampling and similar depth comparisons.

Compare mode for shadow map sampling and similar depth comparisons.

Compare mode for shadow map sampling and similar depth comparisons.

Compare mode for shadow map sampling and similar depth comparisons.

Compare mode for shadow map sampling and similar depth comparisons.

Link copied to clipboard

Magnification filter specifies how texels are filtered when the texture is sampled at a size larger than its original resolution.

Magnification filter specifies how texels are filtered when the texture is sampled at a size larger than its original resolution.

Magnification filter specifies how texels are filtered when the texture is sampled at a size larger than its original resolution.

Magnification filter specifies how texels are filtered when the texture is sampled at a size larger than its original resolution.

Magnification filter specifies how texels are filtered when the texture is sampled at a size larger than its original resolution.

Link copied to clipboard

Minification filter specifies how texels are filtered when the texture is sampled at a size smaller than its original resolution.

Minification filter specifies how texels are filtered when the texture is sampled at a size smaller than its original resolution.

Minification filter specifies how texels are filtered when the texture is sampled at a size smaller than its original resolution.

Minification filter specifies how texels are filtered when the texture is sampled at a size smaller than its original resolution.

Minification filter specifies how texels are filtered when the texture is sampled at a size smaller than its original resolution.

Link copied to clipboard

Texture wrapping mode for texture coordinates outside the 0..1 range.

Texture wrapping mode for texture coordinates outside the 0..1 range.

Texture wrapping mode for texture coordinates outside the 0..1 range.

Texture wrapping mode for texture coordinates outside the 0..1 range.

Texture wrapping mode for texture coordinates outside the 0..1 range.

Properties

Link copied to clipboard
actual var anisotropy: Float

Anisotropic filtering amount. Should be a power-of-two. Default is 1.0 (disabled). The maximum permissible value is 128.

expect var anisotropy: Float

Anisotropic filtering amount. Should be a power-of-two. Default is 1.0 (disabled). The maximum permissible value is 128.

actual var anisotropy: Float

Anisotropic filtering amount. Should be a power-of-two. Default is 1.0 (disabled). The maximum permissible value is 128.

actual var anisotropy: Float

Anisotropic filtering amount. Should be a power-of-two. Default is 1.0 (disabled). The maximum permissible value is 128.

actual var anisotropy: Float

Anisotropic filtering amount. Should be a power-of-two. Default is 1.0 (disabled). The maximum permissible value is 128.

Link copied to clipboard

Comparison function for depth comparisons.

Comparison function for depth comparisons.

Comparison function for depth comparisons.

Comparison function for depth comparisons.

Comparison function for depth comparisons.

Link copied to clipboard

Comparison mode.

Comparison mode.

Comparison mode.

Comparison mode.

Comparison mode.

Link copied to clipboard

Magnification filter.

Magnification filter.

Magnification filter.

Magnification filter.

Magnification filter.

Link copied to clipboard

Minification filter.

Minification filter.

Minification filter.

Minification filter.

Minification filter.

Link copied to clipboard

Wrap mode for R (depth) texture coordinate.

Wrap mode for R (depth) texture coordinate.

Wrap mode for R (depth) texture coordinate.

Wrap mode for R (depth) texture coordinate.

Wrap mode for R (depth) texture coordinate.

Link copied to clipboard

Wrap mode for S (horizontal) texture coordinate.

Wrap mode for S (horizontal) texture coordinate.

Wrap mode for S (horizontal) texture coordinate.

Wrap mode for S (horizontal) texture coordinate.

Wrap mode for S (horizontal) texture coordinate.

Link copied to clipboard

Wrap mode for T (vertical) texture coordinate.

Wrap mode for T (vertical) texture coordinate.

Wrap mode for T (vertical) texture coordinate.

Wrap mode for T (vertical) texture coordinate.

Wrap mode for T (vertical) texture coordinate.