pub struct RendererConfigSpec { /* private fields */ }Expand description
Immutable snapshot of every build-time config knob the embedder chose — the
declare→commit-for-config analog of the load transaction. Captured at
build() and stored on AwsmRenderer; AwsmRenderer::remove_all
rebuilds straight from it via AwsmRendererBuilder::from_spec, so a
scene-data wipe can NEVER silently drop a config (the historical hand-copy
in remove_all repeatedly did — bucket cap, shadow-K, brdf-lut, env colors).
Mirrors the builder’s raw inputs exactly (the Options + the depth override),
not resolved values, so from_spec(...).build() re-runs identical resolution.
The only builder fields NOT captured are gpu (passed to from_spec
separately) and phase_handler (a non-clonable callback irrelevant to a
rebuild). Add a field here whenever a new build-time with_* knob is added.
Trait Implementations§
Source§impl Clone for RendererConfigSpec
impl Clone for RendererConfigSpec
Source§fn clone(&self) -> RendererConfigSpec
fn clone(&self) -> RendererConfigSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more