예제 #1
0
파일: ObjectType.cs 프로젝트: cg123/xenko
        /// <inheritdoc/>
        public bool Equals(ObjectType other)
        {
            if (ReferenceEquals(null, other))
            {
                return false;
            }

            if (ReferenceEquals(this, other))
            {
                return true;
            }

            return Equals(other.Name, Name) || AlternativeNames.Contains(other.Name);
        }
예제 #2
0
파일: ShaderWriter.cs 프로젝트: cg123/xenko
 public virtual void Visit(ObjectType typeBase)
 {
     Write(typeBase.Name);
 }
 /// <summary>
 /// Visits the specified type.
 /// </summary>
 /// <param name="type">the type.</param>
 public override void Visit(ObjectType type)
 {
     if (type.IsSamplerStateType())
         Write("SamplerState");
 }
예제 #4
0
 /// <inheritdoc />
 public override void Visit(ObjectType typeBase)
 {
     Write(typeBase.Name);
 }