private void Init(VFXExpressionMapper mapper) { m_UniformToName = new Dictionary <VFXExpression, List <string> >(); m_TextureToName = new Dictionary <VFXExpression, List <string> >(); foreach (var exp in mapper.expressions) { CollectAndAddUniforms(exp, mapper.GetData(exp).Select(d => d.fullName)); } }
private void Init(VFXExpressionMapper mapper) { m_UniformToName = new Dictionary <VFXExpression, List <string> >(); m_TextureToName = new Dictionary <VFXExpression, List <string> >(); var processedExp = new HashSet <VFXExpression>(); foreach (var exp in mapper.expressions) { processedExp.Clear(); var initialNames = mapper.GetData(exp).Select(d => d.fullName); CollectAndAddUniforms(exp, initialNames, processedExp); } }