graphics-core 0.1.0

Shared low-level, host-agnostic WGPU graphics substrate for offscreen rendering, readback, 2D/camera math, and overlay/preview pipelines.
Documentation
//! # graphics-core
//!
//! Shared low-level, host-agnostic WGPU graphics substrate with offscreen rendering,
//! GPU-to-CPU readback, 2D/camera math, and reusable render pipelines.

pub mod batch2d;
pub mod camera;
pub mod handles;
pub mod math;
pub mod pipelines;
pub mod readback;
pub mod renderer;
pub mod targets;

// Re-export glam and wgpu for convenient math and GPU type identity across ecosystem
pub use glam;
pub use wgpu;

// Flat re-exports for high-frequency ergonomics
pub use batch2d::*;
pub use camera::*;
pub use handles::*;
pub use math::*;
pub use pipelines::*;
pub use readback::*;
pub use renderer::*;
pub use targets::*;

/// Crate version string.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_version_exists() {
        assert!(!VERSION.is_empty());
    }
}