public void AttachOutPut(string ShaderParameterName, Geometry2D Geometry, bool IsPing) { if (IsPing) { if (!OutputGeometries2DPing.ContainsKey(Geometry)) { OutputGeometries2DPing.Add(Geometry, ShaderParameterName); } } else { if (!OutputGeometries2DPong.ContainsKey(Geometry)) { OutputGeometries2DPong.Add(Geometry, ShaderParameterName); } } }
public void AttachOutPutRange(Dictionary <Geometry2D, string> AddList, bool IsPing) { if (IsPing) { foreach (KeyValuePair <Geometry2D, string> Entry in AddList) { if (!OutputGeometries2DPing.ContainsKey(Entry.Key)) { OutputGeometries2DPing.Add(Entry.Key, Entry.Value); } } } else { foreach (KeyValuePair <Geometry2D, string> Entry in AddList) { if (!OutputGeometries2DPong.ContainsKey(Entry.Key)) { OutputGeometries2DPong.Add(Entry.Key, Entry.Value); } } } }