Пример #1
0
        public bool Equals(ShaderSourceCollection other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            if (Count != other.Count)
            {
                return(false);
            }

            for (int i = 0; i < Count; ++i)
            {
                if (!this[i].Equals(other[i]))
                {
                    return(false);
                }
            }

            return(true);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShaderArraySource"/> class.
 /// </summary>
 public ShaderArraySource()
 {
     Values = new ShaderSourceCollection();
 }