pub struct Evaluation { /* private fields */ }Expand description
Time, quality and explicit resources for one evaluation.
SceneContext and DrawContext build on the same environment so deferred
content sees identical time, quality, assets, fonts, diagnostics and compute
caches whichever one measures or records it. The environment is immutable
once shared; builders take self and drawing contexts hold it by Arc.
Implementations§
Source§impl Evaluation
impl Evaluation
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a Final-quality environment at time zero without assets or caches.
Sourcepub fn with_quality(self, quality: RenderQuality) -> Self
pub fn with_quality(self, quality: RenderQuality) -> Self
Selects an explicit approximation policy for deferred content.
Sourcepub fn quality(&self) -> RenderQuality
pub fn quality(&self) -> RenderQuality
Production quality is the default.
Sourcepub fn with_time(self, time: Time) -> Self
pub fn with_time(self, time: Time) -> Self
Supplies scene-local signed time to deferred content effects.
Sourcepub fn with_assets(self, assets: &Assets) -> Self
pub fn with_assets(self, assets: &Assets) -> Self
Captures the same lazy/preloaded owner used by the enclosing session.
The assets inherit this environment’s diagnostics, and their font environment replaces any previously supplied one.
Sourcepub fn assets(&self) -> &Assets
pub fn assets(&self) -> &Assets
Explicit resource owner; an unconfigured environment resolves no relative files.
Sourcepub fn with_fonts(self, fonts: impl Into<FontEnvironment>) -> Self
pub fn with_fonts(self, fonts: impl Into<FontEnvironment>) -> Self
Supplies a shared explicit font snapshot.
Sourcepub fn fonts(&self) -> Option<&FontEnvironment>
pub fn fonts(&self) -> Option<&FontEnvironment>
Font environment for paragraph text, optional for geometry-only content.
Sourcepub fn with_diagnostics(self, diagnostics: RequestDiagnostics) -> Self
pub fn with_diagnostics(self, diagnostics: RequestDiagnostics) -> Self
Carries request diagnostics explicitly through deferred content compilation.
Sourcepub fn diagnostics(&self) -> &RequestDiagnostics
pub fn diagnostics(&self) -> &RequestDiagnostics
Request-owned sink; cloning the environment preserves its identity.
Sourcepub fn with_cache(self, cache: RenderCache) -> Self
pub fn with_cache(self, cache: RenderCache) -> Self
Supplies partitioned compute caches shared by rendering workers.
Sourcepub fn cache(&self) -> Option<&RenderCache>
pub fn cache(&self) -> Option<&RenderCache>
Shared compute-cache partitions, absent for standalone uncached evaluation.
Shares this environment between contexts without copying it.