![]() |
Paradox Game Engine
v1.0.0 beta06
|
Macro to be used with PreProcessor. More...
Public Member Functions | |
ShaderMacro (string name, object definition) | |
Initializes a new instance of the ShaderMacro struct. More... | |
bool | Equals (ShaderMacro other) |
Indicates whether the current object is equal to another object of the same type. More... | |
override bool | Equals (object obj) |
Determines whether the specified System.Object is equal to this instance. More... | |
override int | GetHashCode () |
Returns a hash code for this instance. More... | |
override string | ToString () |
Public Attributes | |
readonly string | Name |
Name of the macro to set. More... | |
readonly string | Definition |
Value of the macro to set. More... | |
Macro to be used with PreProcessor.
Definition at line 11 of file ShaderMacro.cs.
SiliconStudio.Shaders.Parser.ShaderMacro.ShaderMacro | ( | string | name, |
object | definition | ||
) |
Initializes a new instance of the ShaderMacro struct.
name | The name. |
definition | The definition. |
Definition at line 18 of file ShaderMacro.cs.
Referenced by SiliconStudio.Paradox.Shaders.Parser.ShaderMixinParser.Parse().
bool SiliconStudio.Shaders.Parser.ShaderMacro.Equals | ( | ShaderMacro | other | ) |
Indicates whether the current object is equal to another object of the same type.
other | An object to compare with this object. |
Definition at line 43 of file ShaderMacro.cs.
References SiliconStudio.Shaders.Parser.ShaderMacro.Definition, and SiliconStudio.Shaders.Parser.ShaderMacro.Name.
override bool SiliconStudio.Shaders.Parser.ShaderMacro.Equals | ( | object | obj | ) |
Determines whether the specified System.Object is equal to this instance.
obj | The System.Object to compare with this instance. |
true
if the specified System.Object is equal to this instance; otherwise, false
. Definition at line 55 of file ShaderMacro.cs.
override int SiliconStudio.Shaders.Parser.ShaderMacro.GetHashCode | ( | ) |
Returns a hash code for this instance.
Definition at line 68 of file ShaderMacro.cs.
override string SiliconStudio.Shaders.Parser.ShaderMacro.ToString | ( | ) |
Definition at line 76 of file ShaderMacro.cs.
readonly string SiliconStudio.Shaders.Parser.ShaderMacro.Definition |
Value of the macro to set.
Definition at line 34 of file ShaderMacro.cs.
Referenced by SiliconStudio.Shaders.Parser.ShaderMacro.Equals().
readonly string SiliconStudio.Shaders.Parser.ShaderMacro.Name |
Name of the macro to set.
Definition at line 29 of file ShaderMacro.cs.
Referenced by SiliconStudio.Shaders.Parser.ShaderMacro.Equals().