setExternalStream

actual fun setExternalStream(engine: Engine, stream: Stream)

Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.

There are many restrictions when using an external stream:

  • Only level 0 (lod 0) can be specified

  • Only nearest or linear filtering is supported

  • Size and format are defined by the external stream

  • Only CLAMP_TO_EDGE wrap mode is supported

This texture must use Sampler.SAMPLER_EXTERNAL for this to have an effect.

Parameters

engine

Engine this texture is associated with

stream

A Stream object, or null to clear

See also

expect fun setExternalStream(engine: Engine, stream: Stream)

Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.

There are many restrictions when using an external stream:

  • Only level 0 (lod 0) can be specified

  • Only nearest or linear filtering is supported

  • Size and format are defined by the external stream

  • Only CLAMP_TO_EDGE wrap mode is supported

This texture must use Sampler.SAMPLER_EXTERNAL for this to have an effect.

Parameters

engine

Engine this texture is associated with

stream

A Stream object, or null to clear

See also

actual fun setExternalStream(engine: Engine, stream: Stream)

Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.

There are many restrictions when using an external stream:

  • Only level 0 (lod 0) can be specified

  • Only nearest or linear filtering is supported

  • Size and format are defined by the external stream

  • Only CLAMP_TO_EDGE wrap mode is supported

This texture must use Sampler.SAMPLER_EXTERNAL for this to have an effect.

Parameters

engine

Engine this texture is associated with

stream

A Stream object, or null to clear

See also

actual fun setExternalStream(engine: Engine, stream: Stream)

Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.

There are many restrictions when using an external stream:

  • Only level 0 (lod 0) can be specified

  • Only nearest or linear filtering is supported

  • Size and format are defined by the external stream

  • Only CLAMP_TO_EDGE wrap mode is supported

This texture must use Sampler.SAMPLER_EXTERNAL for this to have an effect.

Parameters

engine

Engine this texture is associated with

stream

A Stream object, or null to clear

See also

actual fun setExternalStream(engine: Engine, stream: Stream)

Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.

There are many restrictions when using an external stream:

  • Only level 0 (lod 0) can be specified

  • Only nearest or linear filtering is supported

  • Size and format are defined by the external stream

  • Only CLAMP_TO_EDGE wrap mode is supported

This texture must use Sampler.SAMPLER_EXTERNAL for this to have an effect.

Parameters

engine

Engine this texture is associated with

stream

A Stream object, or null to clear

See also