NativeSurface
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.