Skip to main content

Module source_args

Module source_args 

Source
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 Shader stage sub-object or an SdfVolume).