예제 #1
0
            public override int GetHashCode()
            {
                int hashCode = 1910803454;

                hashCode = hashCode * -1521134295 + TextureId.GetHashCode();
                hashCode = hashCode * -1521134295 + WrapS.GetHashCode();
                hashCode = hashCode * -1521134295 + WrapT.GetHashCode();
                return(hashCode);
            }
예제 #2
0
파일: Sampler.cs 프로젝트: mlunnay/minotaur
        public override int GetHashCode()
        {
            int hash = 23;

            hash = hash * 37 + BorderColor.GetHashCode();
            hash = hash * 37 + MinFilter.GetHashCode();
            hash = hash * 37 + MagFilter.GetHashCode();
            hash = hash * 37 + LodMin.GetHashCode();
            hash = hash * 37 + LodMax.GetHashCode();
            hash = hash * 37 + LodBias.GetHashCode();
            hash = hash * 37 + WrapS.GetHashCode();
            hash = hash * 37 + WrapT.GetHashCode();
            hash = hash * 37 + WrapR.GetHashCode();
            return(hash);
        }