NativeSurface
Android implementation of NativeSurface: surface must be an android.view.Surface.
A platform-agnostic representation of a display surface.
This opaque type encapsulates platform-specific surface details and is used to associate a rendering context with a display surface.
JVM implementation of NativeSurface: a raw native window/layer pointer (HWND, X11 Window, NSView*, CAMetalLayer*) as a Long or Int address, handed to FilaEngine_createSwapChain as a void*.
Native implementation of NativeSurface, wrapping a raw pointer.
On web a swap chain renders to its engine's WebGL canvas; canvas names which one.
Constructors
The surface of an AWT canvas, to render straight into an AWT or Swing window (or a Compose SwingPanel). The canvas must be displayable, and its swap chain destroyed before it is removed. The viewport is in pixels: the canvas size times its graphicsConfiguration.defaultTransform scale. On macOS only the Metal backend can render into it.