Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShaderMixinSource"/> class.
 /// </summary>
 public ShaderMixinSource()
 {
     Mixins         = new List <ShaderClassSource>();
     Compositions   = new Core.Collections.SortedList <string, ShaderSource>();
     Macros         = new List <ShaderMacro>();
     UsedParameters = new ShaderMixinParameters();
 }
Ejemplo n.º 2
0
 private static Core.Collections.SortedList<TKey, TValue> ToSortedList<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> list)
 {
     var values = new Core.Collections.SortedList<TKey, TValue>();
     foreach (var item in list)
         values.Add(item.Key, item.Value);
     return values;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShaderMixinSource"/> class.
 /// </summary>
 public ShaderMixinSource()
 {
     Mixins       = new List <ShaderClassCode>();
     Compositions = new Core.Collections.SortedList <string, ShaderSource>();
     Macros       = new List <ShaderMacro>();
 }