Back to Filament

waitAndDestroy

docs/android/dokka/filament-android/com.google.android.filament/-fence/wait-and-destroy.md

1.75.0780 B
Original Source

//filament-android/com.google.android.filament/Fence/waitAndDestroy

waitAndDestroy

[main]
open fun waitAndDestroy(fence: Fence, mode: Fence.Mode): Fence.FenceStatus

Client-side wait on a Fence and destroy the Fence.

Return

FenceStatus::CONDITION_SATISFIED on success, FenceStatus::ERROR otherwise.

Parameters

main

fenceFence object to wait on.
modeWhether the command stream is flushed before waiting or not.

Throws

Errorif the backend thread encountered an unrecoverable error.