Struct ShaderMacro
Preprocessor macro.
[DataContract]
public struct ShaderMacro : IEquatable<ShaderMacro>
  - Implements
 
- Inherited Members
 
Constructors
ShaderMacro(string, object)
Initializes a new instance of the ShaderMacro struct.
public ShaderMacro(string name, object definition)
  Parameters
namestringThe name.
definitionobjectThe definition.
Fields
Definition
Value of the macro to set.
public string Definition
  Field Value
Name
Name of the macro to set.
public string Name
  Field Value
Methods
Equals(ShaderMacro)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ShaderMacro other)
  Parameters
otherShaderMacroAn object to compare with this object.
Returns
- bool
 true if the current object is equal to the
otherparameter; otherwise, false.
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
  Parameters
objobjectThe object to compare with this instance.
Returns
- bool
 trueif the specified object is equal to this instance; otherwise,false.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
  Returns
- int
 A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.