fn meld_in_sampler()

in native/src/work_asset/meld.rs [129:144]


fn meld_in_sampler(
    base: &mut WorkAsset,
    other: &WorkAsset,
    other_ix: Index<Sampler>,
) -> Index<Sampler> {
    let other_ix = other_ix.value();
    let key = &other.sampler_keys()[other_ix];
    if let Some(ix) = base.sampler_ix(key) {
        return Index::new(ix as u32);
    }
    let new_object = other.samplers()[other_ix].clone();

    // no current meld logic needed

    Index::new(base.push_sampler(new_object, key) as u32)
}