Files
wsg/lib/src/resources/mod.rs
T
Jérôme Bousquié 82ea16d118 re-org en App
2026-07-07 16:42:37 +02:00

21 lines
906 B
Rust

//! # Resources Module — Data Types
//!
//! Defines the three core data types that flow through the rendering pipeline: **Vertex** (CPU-side per-attribute
//! tuple), **Mesh** (GPU geometry container with vertex/index buffers), and **Material** (appearance descriptor
//! pairing shader ID with a compiled RenderPipeline). These are immutable after creation and consumed by Renderer
//! for draw calls.
//!
//! ## Interaction with Other Modules
//! - `pipeline_cache::build_pipeline()` reads Vertex field offsets to construct the vertex buffer layout.
//! - `mesh::new()` uploads Vertex arrays from CPU memory into GPU vertex buffers via DeviceExt::create_buffer_init().
//! - `material::new()` requests RenderPipelines from PipelineCache during scene initialization.
pub mod material;
pub mod mesh;
pub mod vertex;
// Re-exports
pub use material::Material;
pub use mesh::Mesh;
pub use vertex::Vertex;