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
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
other
ShaderMacroAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
other
parameter; otherwise, false.
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
Parameters
Returns
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.