5 namespace SiliconStudio.Shaders.Ast
12 #region Constants and Fields
46 #region Constructors and Destructors
83 #region Public Properties
91 public Type Type {
get; set; }
96 public bool IsUnsigned
100 return Type == typeof(uint);
106 #region Public Methods
119 if (ReferenceEquals(null, other))
124 if (ReferenceEquals(
this, other))
129 return base.Equals(other) && Equals(other.
Type, Type);
135 if (ReferenceEquals(null, obj))
140 if (ReferenceEquals(
this, obj))
153 return (base.GetHashCode() * 397) ^ (Type != null ? Type.GetHashCode() : 0);
170 return type == Float || type == Double || type ==
Half;
182 return type == Int || type == UInt;
195 return Equals(left, right);
208 return !Equals(left, right);
bool Equals(ScalarType other)
Equalses the specified other.
override int GetHashCode()
Type Type
Gets or sets the type.
SiliconStudio.Paradox.Games.Mathematics.Half Half
override bool Equals(object obj)
ScalarType()
Initializes a new instance of the ScalarType class.
static bool IsFloat(TypeBase type)
Determines whether the specified type is a float/half/double.
ScalarType(string name, Type type)
Initializes a new instance of the ScalarType class.
ScalarType(string name)
Initializes a new instance of the ScalarType class.
static bool IsInteger(TypeBase type)
Determines whether the specified type is an integer.