Back to Filament

renderStandaloneView

docs/android/dokka/filament-android/com.google.android.filament/-renderer/render-standalone-view.md

1.75.01.3 KB
Original Source

//filament-android/com.google.android.filament/Renderer/renderStandaloneView

renderStandaloneView

[main]
open fun renderStandaloneView(view: View)

Renders a standalone View into its associated RenderTarget.

This call is mostly equivalent to calling render inside a beginFrame / endFrame block, but incurs less overhead. It can be used as a poor man's compute API.

  • renderStandaloneView() must be called outside of beginFrame / endFrame.
  • renderStandaloneView() must be called from the Engine's main thread (or external synchronization must be provided). In particular, calls to renderStandaloneView() on different Renderer instances must be synchronized.
  • renderStandaloneView() performs potentially heavy computations and cannot be multi-threaded. However, internally, it is highly multi-threaded to both improve performance and mitigate the call's latency.

Parameters

main

viewthe View to render. This View must have an associated RenderTarget

See also

View