Back to Filament

copyFrame

docs/android/dokka/filament-android/com.google.android.filament/-renderer/copy-frame.md

1.75.01.0 KB
Original Source

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

copyFrame

[main]
open fun copyFrame(dstSwapChain: SwapChain, dstViewport: Viewport, srcViewport: Viewport, flags: Int)

Copies the currently rendered View to the indicated SwapChain, using the indicated source and destination rectangle.

copyFrame() should be called after a frame is rendered using render but before endFrame is called.

Parameters

main

dstSwapChainthe SwapChain into which the frame should be copied
dstViewportthe destination rectangle in which to draw the view
srcViewportthe source rectangle to be copied
flagsone or more CopyFrameFlag behavior configuration flags