Package org.lwjgl.egl
Class WLCreateWaylandBufferFromImage
java.lang.Object
org.lwjgl.egl.WLCreateWaylandBufferFromImage
Native bindings to the WL_create_wayland_buffer_from_image extension.
This extension provides an entry point to create a wl_buffer
which shares its contents with a given EGLImage
. The expected use case for
this is in a nested Wayland compositor which is using subsurfaces to present buffers from its clients. Using this extension it can attach the client
buffers directly to the subsurface without having to blit the contents into an intermediate buffer. The compositing can then be done in the parent
compositor.
The nested compositor can create an EGLImage
from a client buffer resource using the existing WL_bind_wayland_display
extension. It
should also be possible to create buffers using other types of images although there is no expected use case for that.
Requires EGL 1.4
and KHR_image_base
.
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
eglCreateWaylandBufferFromImageWL
(long dpy, long image)
-
Method Details
-
eglCreateWaylandBufferFromImageWL
public static long eglCreateWaylandBufferFromImageWL(long dpy, long image)
-