Expand description
Rendering functionality and abstractions
Collection of common traits and implementations to facilitate (possible hardware-accelerated) rendering.
Supported rendering apis:
- Raw OpenGL ES 2
Modules§
- Helper for effective output damage tracking
- Common base for elements that can be drawn by a
Renderer
- gles
renderer_gl
Implementation of the rendering traits using OpenGL ES 2 - glow
renderer_glow
Integration for using [glow
] on top of smithays OpenGL ES 2 renderer - multigpu
renderer_multi
This module aims to make multi-gpu setups easier to handle for compositors. - pixman
renderer_pixman
Implementation of the rendering traits using pixman - Helper for synchronizing rendering operations
- test
renderer_test
Structs§
- Debug flags that can be enabled at runtime
Enums§
- BufferType
wayland_frontend
Buffer type of a given wl_buffer, if managed by smithay - Texture filtering methods
Traits§
- Abstraction for Renderers, that can render into different targets
- Trait for renderers supporting blitting contents from one framebuffer to another.
- Trait for renderers supporting exporting contents of framebuffers or textures into memory.
- Helper trait for
Renderer
, which defines a rendering api for a currently in-progress frame duringRenderer::render
. - ImportAll
wayland_frontend
Common trait for renderers of any wayland buffer type - Trait for Renderers supporting importing dmabufs.
- ImportDmaWl
wayland_frontend
Trait for Renderers supporting importing dmabuf-based wl_buffers - ImportEgl
wayland_frontend
andbackend_egl
anduse_system_lib
Trait for Renderers supporting importing wl_drm-based buffers. - Trait for Renderers supporting importing bitmaps from memory.
- ImportMemWl
wayland_frontend
Trait for Renderers supporting importing wl_buffers using shared memory. - Trait for renderers that support creating offscreen framebuffers to render into.
- Abstraction of commonly used rendering operations for compositors.
- A two dimensional texture
- A downloaded texture buffer
- Functionality to unbind the current rendering target
Functions§
- buffer_dimensions
wayland_frontend
Returns the dimensions of a wl_buffer - buffer_has_alpha
wayland_frontend
Returns if the buffer has an alpha channel - buffer_type
wayland_frontend
Returns the type of a wl_buffer - buffer_y_inverted
wayland_frontend
Returns if the underlying buffer is y-inverted