Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Shaders.Parser.ShaderMacro Struct Reference

Macro to be used with PreProcessor. More...

Inheritance diagram for SiliconStudio.Shaders.Parser.ShaderMacro:
IEquatable< ShaderMacro >

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...
 

Detailed Description

Macro to be used with PreProcessor.

Definition at line 11 of file ShaderMacro.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Parser.ShaderMacro.ShaderMacro ( string  name,
object  definition 
)

Initializes a new instance of the ShaderMacro struct.

Parameters
nameThe name.
definitionThe definition.

Definition at line 18 of file ShaderMacro.cs.

Referenced by SiliconStudio.Paradox.Shaders.Parser.ShaderMixinParser.Parse().

Member Function Documentation

bool SiliconStudio.Shaders.Parser.ShaderMacro.Equals ( ShaderMacro  other)

Indicates whether the current object is equal to another object of the same type.

Parameters
otherAn object to compare with this object.
Returns
true if the current object is equal to the other parameter; otherwise, false.

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.

Parameters
objThe System.Object to compare with this instance.
Returns
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.

Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Definition at line 68 of file ShaderMacro.cs.

override string SiliconStudio.Shaders.Parser.ShaderMacro.ToString ( )

Definition at line 76 of file ShaderMacro.cs.

Member Data Documentation

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().


The documentation for this struct was generated from the following file: