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

Preprocessor macro. More...

Inheritance diagram for SiliconStudio.Paradox.Shaders.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...
 

Public Attributes

string Name
 Name of the macro to set. More...
 
string Definition
 Value of the macro to set. More...
 

Detailed Description

Preprocessor macro.

Definition at line 15 of file ShaderMacro.cs.

Constructor & Destructor Documentation

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

Initializes a new instance of the ShaderMacro struct.

Parameters
nameThe name.
definitionThe definition.

Definition at line 22 of file ShaderMacro.cs.

Member Function Documentation

bool SiliconStudio.Paradox.Shaders.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 47 of file ShaderMacro.cs.

References SiliconStudio.Paradox.Shaders.ShaderMacro.Definition, and SiliconStudio.Paradox.Shaders.ShaderMacro.Name.

override bool SiliconStudio.Paradox.Shaders.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 59 of file ShaderMacro.cs.

override int SiliconStudio.Paradox.Shaders.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 72 of file ShaderMacro.cs.

Member Data Documentation

string SiliconStudio.Paradox.Shaders.ShaderMacro.Definition

Value of the macro to set.

Definition at line 38 of file ShaderMacro.cs.

Referenced by SiliconStudio.Paradox.Shaders.ShaderMacro.Equals().

string SiliconStudio.Paradox.Shaders.ShaderMacro.Name

Name of the macro to set.

Definition at line 32 of file ShaderMacro.cs.

Referenced by SiliconStudio.Paradox.Shaders.ShaderMacro.Equals().


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