drmkit-scene-sources 0.1.2

Tier-1 buffer sources for drmkit scenes: dumb buffers and imported DMA-BUFs.
Documentation
// SPDX-FileCopyrightText: (c) 2026 Joel Winarske
// SPDX-License-Identifier: MIT

//! Tier-1 buffer sources for drmkit scenes.
//!
//! Port of the tier-1 sources from `src/scene/` — the ones that need no GPU,
//! no EGL, and no external media stack. Everything here implements
//! [`LayerBufferSource`](drmkit_scene::LayerBufferSource), so a scene consumes
//! them without knowing which it has.

mod cache;
mod cursor;
mod dumb;
mod external;
#[cfg(feature = "gbm")]
mod gbm;
mod pool;
mod presenter;
mod ring;

pub use cache::DmaBufSourceCache;
pub use cursor::CursorSource;
pub use dumb::DumbBufferSource;
pub use external::{ExternalDmaBufSource, ExternalError, ExternalPlane};
#[cfg(feature = "gbm")]
pub use gbm::{GbmBufferSource, GbmSourceError};
pub use pool::ExternalDmaBufPool;
pub use presenter::{Acquired, MAX_DAMAGE, Present, RingPresenter, SlotKey};
pub use ring::{ExternalDmaBufRing, OnRelease};

#[cfg(test)]
mod tests;