Expand description
Wayland Buffer and SHM Pool Management
Provides pixel buffer allocation backed by kernel-heap memory pools.
Each WlShmPool owns a contiguous byte allocation from which individual
WlBuffer objects are sub-allocated at arbitrary offsets. This mirrors
the real Wayland wl_shm / wl_shm_pool / wl_buffer protocol objects.
Structs§
- Buffer
- Legacy buffer struct retained for surface.rs compatibility.
New code should use
WlBuffer+ pool references. - WlBuffer
- A buffer object referencing pixel data within a
WlShmPool. - WlShm
Pool - A shared memory pool that backs one or more buffers.
Functions§
- init_
shm_ pools - Initialize the SHM pool registry (called once during Wayland init).
- register_
pool - Register a new SHM pool.
- unregister_
pool - Remove a pool from the registry.
- with_
pool - Execute a closure with read-only access to a specific pool.
- with_
pool_ mut - Execute a closure with mutable access to a specific pool.