예제 #1
0
        public bool Equals(EffectSignatureLayout other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            // Check the number of elements
            if (InputElements.Length != other.InputElements.Length)
            {
                return(false);
            }

            // Check the signature pointer
            if (ShaderSignature != other.ShaderSignature)
            {
                return(false);
            }

            return(!InputElements.Where((t, i) => t != other.InputElements[i]).Any());
        }
예제 #2
0
        public bool Equals(EffectSignatureLayout other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;

            // Check the number of elements
            if (InputElements.Length != other.InputElements.Length)
                return false;

            // Check the signature pointer
            if (ShaderSignature != other.ShaderSignature)
                return false;

            return !InputElements.Where((t, i) => t != other.InputElements[i]).Any();
        }