Fence

actual class Fence

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

expect class Fence

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

actual class Fence

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

actual class Fence

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

actual class Fence

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

Constructors

Link copied to clipboard
constructor(nativeFence: Fence)
constructor(nativeHandle: MemorySegment?)
constructor(nativeHandle: CPointer<FilaFence>?)
constructor(jsFence: Fence)

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion
Link copied to clipboard

Error codes for Fence.wait()

Error codes for Fence.wait()

Error codes for Fence.wait()

Error codes for Fence.wait()

Error codes for Fence.wait()

Link copied to clipboard
actual enum Mode : Enum<Fence.Mode>

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

expect enum Mode : Enum<Fence.Mode>

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

actual enum Mode : Enum<Fence.Mode>

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

actual enum Mode : Enum<Fence.Mode>

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

actual enum Mode : Enum<Fence.Mode>

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

Properties

Link copied to clipboard
actual val nativeObject: Long
expect val nativeObject: Long
actual val nativeObject: Long
actual val nativeObject: Long
actual val nativeObject: Long
Link copied to clipboard
val Fence.nativeObject: Fence
val Fence.nativeObject: MemorySegment?
val Fence.nativeObject: CPointer<FilaFence>?
val Fence.nativeObject: Fence

Functions

Link copied to clipboard
actual fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.

expect fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.

actual fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.

actual fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.

@PlatformGap(platforms = [FilamentPlatform.WEB], behavior = "WebGL cannot block the calling thread, so the timeout is clamped to 0 — wait() is a non-blocking poll of the fence state.")
actual fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.