Skip to main content

StageSourceExt

Trait StageSourceExt 

Source
pub trait StageSourceExt {
    // Required method
    fn current_platform_source(&self) -> Option<String>;
}
Expand description

Resolve the source filename for the current build platform from a stage’s declared source / sources. Mirrors the build-time selection (concinnity-world source_args) so the hot-reload subsystem picks the same per-platform source the build read at compile time. Returns None when no current-platform source is declared (e.g. a stage that only declares glsl running on the Metal backend, which loads the embedded GLSL fallback at init and has no on-disk file to hot-reload). Exposed as an extension trait because the schema type lives in concinnity-asset.

Required Methods§

Source

fn current_platform_source(&self) -> Option<String>

The source path declared for the running platform, or None when the stage declares none.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§