re-org en App
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//! # 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;
|
||||
Reference in New Issue
Block a user