preset_id_for

Function preset_id_for 

Source
pub(crate) fn preset_id_for(preset: &MilkPreset) -> String
Expand description

Stable preset id used to seed sampler_rand0X resolution. Derived from the preset’s comp shader text (when present) — identical shaders share the same rand pick; distinct ones diverge. Falls back to a hash of the per-frame equations when the comp shader is absent.