Skip to main content

Module subsystems

Module subsystems 

Source
Expand description

P1-1 (phase 6): Subsystem modules.

Each renderer subsystem is a self-contained module. This replaces the previous design where subsystem state was mixed in with the rest of the renderer state in the giant types.rs file.

Phase 6 of the P1-1 refactor: move the subsystem structs from types.rs into their own files so they can be reviewed, tested, and modified in isolation.

Re-exports§

pub use config::SurtrConfig;
pub use gpu_capabilities::detect_gpu_vendor;
pub use gpu_capabilities::GpuCapabilities;
pub use gpu_capabilities::GpuVendor;
pub use crate::types::GeometryBuffers;
pub use crate::types::ParticleSubsystem;
pub use crate::types::SvgSubsystem;
pub use crate::types::TextSubsystem;

Modules§

config
P1-1 (phase 6): SurtrConfig – the renderer’s tunable parameters.
geometry_buffers
P1-1 (phase 6): GeometryBuffers – the three GPU draw buffers.
gpu_capabilities
P1-26: GPU capability detection.