4 using System.Collections;
5 using System.Collections.Generic;
7 namespace SiliconStudio.Shaders.Ast.Hlsl
14 #region Constructors and Destructors
38 Register = idenfitier;
55 Register = idenfitier;
61 #region Public Properties
81 #region Public Methods
94 if (ReferenceEquals(null, other))
99 if (ReferenceEquals(
this, other))
104 return base.Equals(other) && Equals(other.
Profile, Profile) && Equals(other.
Register, Register);
110 if (ReferenceEquals(null, obj))
115 if (ReferenceEquals(
this, obj))
126 ChildrenList.Clear();
129 ChildrenList.Add(Profile);
132 ChildrenList.Add(Register);
141 int result = base.GetHashCode();
142 result = (result * 397) ^ (Profile != null ? Profile.GetHashCode() : 0);
143 result = (result * 397) ^ (Register != null ? Register.GetHashCode() : 0);
149 public override string DisplayName
153 return Profile == null ? string.Format(
": register({0})", Register) :
string.Format(
": register({0},{1})", Profile, Register);
171 return Equals(left, right);
184 return !Equals(left, right);
bool Equals(RegisterLocation other)
Determines whether the specified RegisterLocation is equal to this instance.
RegisterLocation(Identifier profile, Identifier idenfitier)
Initializes a new instance of the RegisterLocation class.
RegisterLocation()
Initializes a new instance of the RegisterLocation class.
Identifier Profile
Gets or sets the profile.
Describe a register location
override bool Equals(object obj)
RegisterLocation(string profile, Identifier idenfitier)
Initializes a new instance of the RegisterLocation class.
override int GetHashCode()
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes
Identifier Register
Gets or sets the register.