Expand description
JSON-args source selection for the shader-backed asset types.
A Shader stage / SdfVolume declares its shader source as a single path plus
an optional per-platform map; the build pipeline and the world checks pick
the building backend’s entry straight from the raw args JSON. The runtime
selects from the typed struct instead (StageSourceExt and the SdfVolume
clamp in concinnity-core), so the runtime tier carries no JSON parsing.
Functions§
- current_
platform_ source_ arg - Resolve the raw fragment shader source an SdfVolume declares for the current build backend.
- resolve_
source_ from_ args - Resolves the shader source filename for the current platform from raw
stage args (a
Shaderstage sub-object or an SdfVolume).