public void AttachOutPut(string ShaderParameterName, Effect AttachShader, bool IsPing) { if (IsPing) { if (!OutputShadersPing.ContainsKey(AttachShader)) { OutputShadersPing.Add(AttachShader, ShaderParameterName); } } else { if (!OutputShadersPong.ContainsKey(AttachShader)) { OutputShadersPong.Add(AttachShader, ShaderParameterName); } } }
public void AttachOutPutRange(Dictionary <Effect, string> AddList, bool IsPing) { if (IsPing) { foreach (KeyValuePair <Effect, string> Entry in AddList) { if (!OutputShadersPing.ContainsKey(Entry.Key)) { OutputShadersPing.Add(Entry.Key, Entry.Value); } } } else { foreach (KeyValuePair <Effect, string> Entry in AddList) { if (!OutputShadersPong.ContainsKey(Entry.Key)) { OutputShadersPong.Add(Entry.Key, Entry.Value); } } } }