SwapChain
A SwapChain represents an Operating System's native renderable surface.
Typically, it's a native window or a view. A SwapChain is initialized from a native object, which must be of the proper type for each platform Filament is running on:
| Platform | Native Type |
|---|---|
| Android | ANativeWindow* |
| macOS - OpenGL | NSView* |
| macOS - Metal | CAMetalLayer* |
| iOS - OpenGL | CAEAGLLayer* |
| iOS - Metal | CAMetalLayer* |
| X11 | Window |
| Windows | HWND |
See also
Types
Strategy for applying a frame rate change that is not seamless.
Frame rate compatibility strategy for setFrameRate.
Properties
Returns whether this SwapChain supports the setFrameRate API.
Checks if a frame scheduled callback is currently set on this SwapChain.
The native object, for interop with code calling the Fila* C API directly. Read-only: this wrapper owns it.
Gets the native window/surface associated with this SwapChain.
Functions
Sets a callback to be invoked when a frame's rendering has completed on the GPU.
Sets the intended frame rate for this SwapChain.
Sets a callback to be invoked when a frame is scheduled for presentation.