Plan
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
The `scene` module defines Scene, the declarative layer of the WSG architecture. Users register resources (Meshes, Materials) by identifier before the render loop starts, then associate entities via labels. At runtime, Scene provides immutable access to these resources without exposing raw wgpu handles.
|
||||
|
||||
## Files
|
||||
|
||||
| File | Responsibility |
|
||||
|------|---------------|
|
||||
| **scene** | Scene struct — resource depot storing Meshes and Materials keyed by string identifiers, plus entity graph mapping labels to (mesh_id, material_id) pairs for rendering iteration. |
|
||||
@@ -17,4 +19,4 @@ The `scene` module defines Scene, the declarative layer of the WSG architecture.
|
||||
|
||||
## Architecture Note
|
||||
|
||||
Per ARCHI_APP_FACADE.md, Scene is one half of the "App" facade pattern. It enables a declarative workflow where all resources are declared before the render loop begins, while keeping the freedom to build the engine "brick by brick" through direct Context/PipelineCache/Renderer manipulation.
|
||||
Per [ARCHI_APP](../../docs/ARCHI_APP.md), Scene is one half of the "App" facade pattern. It enables a declarative workflow where all resources are declared before the render loop begins, while keeping the freedom to build the engine "brick by brick" through direct Context/PipelineCache/Renderer manipulation.
|
||||
|
||||
Reference in New Issue
Block a user