Fence

class Fence(nativeHandle: NativePointer, engine: NativePointer = NullPointer)

Fence is used to synchronize the application main thread with filament's rendering thread.

Constructors

Link copied to clipboard
constructor(nativeHandle: NativePointer, engine: NativePointer = NullPointer)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Error codes for Fence.wait()

Link copied to clipboard

Mode controls the behavior of the command stream when calling wait().

Properties

Link copied to clipboard

Functions

Link copied to clipboard
@PlatformGap(platforms = [FilamentPlatform.WEB], behavior = "the timeout is clamped to 0 — wasm is single-threaded, so wait() is a non-blocking poll (a FLUSH has already executed every command).")
fun wait(mode: Fence.Mode = Mode.FLUSH, timeout: Long = FENCE_WAIT_FOR_EVER): Fence.FenceStatus

Client-side wait on the Fence.