Use the EGL capture backend for GPU screenshots
mainWhen the egl feature is enabled, libwayshot provides a zero-copy GPU screen capture path (DMA-BUF → EGLImage → GL texture). This is useful for high-performance capture requirements.
Available EGL-specific APIs:
WayshotConnection::capture_target_frame_eglimage: Capture to anEGLImage.WayshotConnection::capture_target_frame_eglimage_on_display: Capture to anEGLImageon a specificEGLDisplay.WayshotConnection::bind_target_frame_to_gl_texture: Capture and bind directly to the current GL texture.WayshotConnection::create_screencast_with_egl: Set up a screencast session with EGL display binding.EGLImageGuard: An RAII wrapper that manages the lifecycle of theEGLImage, ensuring it is destroyed when dropped.