re-org en App
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//! # WSG Library Crate Root
|
||||
//!
|
||||
//! The top-level entry point for the wsg-lib crate. Exposes five public modules organized by architectural responsibility:
|
||||
//! **core** (Manager + Executor layers), **resources** (data types), **pipeline** (shader compilation cache),
|
||||
//! **scene** (resource graph and entity management), and **utils** (configuration and error handling).
|
||||
//!
|
||||
//! ## Module Interaction Map
|
||||
//! - `core` consumes resources from `resources`, pipelines from `pipeline`, and errors from `utils`.
|
||||
//! - `scene` aggregates Resources, Materials, and Pipelines into an entity graph.
|
||||
//! - `utils` is a leaf module — no internal dependencies on other library modules.
|
||||
//!
|
||||
//! ## Usage
|
||||
//! Consumers import through the re-exports defined in each submodule's `mod.rs`:
|
||||
//! ```ignore
|
||||
//! use wsg_lib::core::{Context, Renderer};
|
||||
//! use wsg_lib::resources::{Mesh, Material, Vertex};
|
||||
//! use wsg_lib::utils::BASIC_SHADER;
|
||||
//! ```
|
||||
pub mod core;
|
||||
pub mod pipeline;
|
||||
pub mod resources;
|
||||
pub mod scene;
|
||||
pub mod utils;
|
||||
Reference in New Issue
Block a user