TextureSampler

actual constructor()

Creates a TextureSampler with default parameters:

  • minFilter: NEAREST

  • magFilter: NEAREST

  • wrapS: CLAMP_TO_EDGE

  • wrapT: CLAMP_TO_EDGE

  • wrapR: CLAMP_TO_EDGE

  • compareMode: NONE

  • compareFunction: LESS_EQUAL

  • anisotropy: 1.0 (disabled)


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.

Parameters

minMag

Filtering for both minification and magnification.


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

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

Parameters

minMag

Filtering for both minification and magnification.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

s

Wrap mode for the S (horizontal) texture coordinate.

t

Wrap mode for the T (vertical) texture coordinate.

r

Wrap mode for the R (depth) texture coordinate.


actual constructor(mode: TextureSampler.CompareMode)

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

Parameters

mode

Compare mode to use.


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

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

Parameters

mode

Compare mode to use.

function

Comparison function.

expect constructor()

Creates a TextureSampler with default parameters:

  • minFilter: NEAREST

  • magFilter: NEAREST

  • wrapS: CLAMP_TO_EDGE

  • wrapT: CLAMP_TO_EDGE

  • wrapR: CLAMP_TO_EDGE

  • compareMode: NONE

  • compareFunction: LESS_EQUAL

  • anisotropy: 1.0 (disabled)


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.

Parameters

minMag

Filtering for both minification and magnification.


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

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

Parameters

minMag

Filtering for both minification and magnification.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

s

Wrap mode for the S (horizontal) texture coordinate.

t

Wrap mode for the T (vertical) texture coordinate.

r

Wrap mode for the R (depth) texture coordinate.


expect constructor(mode: TextureSampler.CompareMode)

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

Parameters

mode

Compare mode to use.


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

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

Parameters

mode

Compare mode to use.

function

Comparison function.

actual constructor()

Creates a TextureSampler with default parameters:

  • minFilter: NEAREST

  • magFilter: NEAREST

  • wrapS: CLAMP_TO_EDGE

  • wrapT: CLAMP_TO_EDGE

  • wrapR: CLAMP_TO_EDGE

  • compareMode: NONE

  • compareFunction: LESS_EQUAL

  • anisotropy: 1.0 (disabled)


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.

Parameters

minMag

Filtering for both minification and magnification.


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

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

Parameters

minMag

Filtering for both minification and magnification.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

s

Wrap mode for the S (horizontal) texture coordinate.

t

Wrap mode for the T (vertical) texture coordinate.

r

Wrap mode for the R (depth) texture coordinate.


actual constructor(mode: TextureSampler.CompareMode)

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

Parameters

mode

Compare mode to use.


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

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

Parameters

mode

Compare mode to use.

function

Comparison function.

actual constructor()

Creates a TextureSampler with default parameters:

  • minFilter: NEAREST

  • magFilter: NEAREST

  • wrapS: CLAMP_TO_EDGE

  • wrapT: CLAMP_TO_EDGE

  • wrapR: CLAMP_TO_EDGE

  • compareMode: NONE

  • compareFunction: LESS_EQUAL

  • anisotropy: 1.0 (disabled)


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.

Parameters

minMag

Filtering for both minification and magnification.


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

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

Parameters

minMag

Filtering for both minification and magnification.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

s

Wrap mode for the S (horizontal) texture coordinate.

t

Wrap mode for the T (vertical) texture coordinate.

r

Wrap mode for the R (depth) texture coordinate.


actual constructor(mode: TextureSampler.CompareMode)

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

Parameters

mode

Compare mode to use.


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

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

Parameters

mode

Compare mode to use.

function

Comparison function.

actual constructor()

Creates a TextureSampler with default parameters:

  • minFilter: NEAREST

  • magFilter: NEAREST

  • wrapS: CLAMP_TO_EDGE

  • wrapT: CLAMP_TO_EDGE

  • wrapR: CLAMP_TO_EDGE

  • compareMode: NONE

  • compareFunction: LESS_EQUAL

  • anisotropy: 1.0 (disabled)


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.

Parameters

minMag

Filtering for both minification and magnification.


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

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

Parameters

minMag

Filtering for both minification and magnification.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

wrap

Wrapping mode applied to all three axes (S, T, R).


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

Parameters

min

Minification filter.

mag

Magnification filter.

s

Wrap mode for the S (horizontal) texture coordinate.

t

Wrap mode for the T (vertical) texture coordinate.

r

Wrap mode for the R (depth) texture coordinate.


actual constructor(mode: TextureSampler.CompareMode)

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

Parameters

mode

Compare mode to use.


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

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

Parameters

mode

Compare mode to use.

function

Comparison function.