Struct smithay::backend::egl::EGLDisplay
source · pub struct EGLDisplay { /* private fields */ }
Expand description
Type to receive EGLImages
for EGL-based WlBuffer
s.
Can be created by using EGLGraphicsBackend::bind_wl_display
.
Implementations§
source§impl EGLDisplay
impl EGLDisplay
sourcepub fn egl_buffer_contents(
&self,
buffer: Resource<WlBuffer>
) -> Result<EGLImages, BufferAccessError>
pub fn egl_buffer_contents(
&self,
buffer: Resource<WlBuffer>
) -> Result<EGLImages, BufferAccessError>
Try to receive EGLImages
from a given WlBuffer
.
In case the buffer is not managed by EGL (but e.g. the wayland::shm
module)
a BufferAccessError::NotManaged
is returned with the original buffer
to render it another way.