![]() |
Paradox Game Engine
v1.0.0 beta06
|
A variable declaration. More...
Public Member Functions | |
Variable () | |
Initializes a new instance of the Variable class. More... | |
Variable (TypeBase type, string name, Expression initialValue=null) | |
Initializes a new instance of the Variable class. More... | |
IEnumerable< Variable > | Instances () |
Returns single variable instances. More... | |
void | MergeFrom (Variable from) |
Merges attributes and qualifiers from another variable. More... | |
override IEnumerable< Node > | Childrens () |
Gets the child nodes.
| |
override string | ToString () |
override int | GetHashCode () |
![]() | |
override bool | Equals (object against) |
override int | GetHashCode () |
object | GetTag (object tagKey) |
Gets a tag value associated to this node.. More... | |
bool | RemoveTag (object tagKey) |
Gets a tag value associated to this node.. More... | |
bool | ContainsTag (object tagKey) |
Determines whether the specified instance contains this tag. More... | |
void | SetTag (object tagKey, object tagValue) |
Sets a tag value associated to this node. More... | |
override string | ToString () |
Properties | |
List< AttributeBase > | Attributes [get, set] |
Qualifier | Qualifiers [get, set] |
Gets or sets the qualifiers. More... | |
TypeBase | Type [get, set] |
Gets or sets the type. More... | |
Expression | InitialValue [get, set] |
Gets or sets the initial value. More... | |
Identifier | Name [get, set] |
Gets or sets the name. More... | |
List< Variable > | SubVariables [get, set] |
Gets or sets the sub variables (used only for variable group) More... | |
bool | IsGroup [get] |
Gets a value indicating whether this instance is group. More... | |
![]() | |
SourceSpan | Span [get, set] |
Gets or sets the source span. More... | |
List< Node > | ChildrenList [get] |
Gets the childrens. More... | |
![]() | |
List< AttributeBase > | Attributes [get, set] |
![]() | |
Identifier | Name [get, set] |
Gets or sets the name of this declaration More... | |
![]() | |
Qualifier | Qualifiers [get, set] |
Gets or sets the qualifiers. More... | |
Additional Inherited Members | |
![]() | |
static bool | operator== (Node left, Node right) |
static bool | operator!= (Node left, Node right) |
![]() | |
Node () | |
Initializes a new instance of the Node class. More... | |
A variable declaration.
Definition at line 11 of file Variable.cs.
SiliconStudio.Shaders.Ast.Variable.Variable | ( | ) |
Initializes a new instance of the Variable class.
Definition at line 18 of file Variable.cs.
SiliconStudio.Shaders.Ast.Variable.Variable | ( | TypeBase | type, |
string | name, | ||
Expression | initialValue = null |
||
) |
Initializes a new instance of the Variable class.
type | The type. |
name | The name. |
initialValue | The initial value. |
Definition at line 30 of file Variable.cs.
|
virtual |
Gets the child nodes.
Reimplemented from SiliconStudio.Shaders.Ast.Node.
Definition at line 135 of file Variable.cs.
References SiliconStudio.Shaders.Ast.Qualifier.None.
override int SiliconStudio.Shaders.Ast.Variable.GetHashCode | ( | ) |
Definition at line 160 of file Variable.cs.
IEnumerable<Variable> SiliconStudio.Shaders.Ast.Variable.Instances | ( | ) |
Returns single variable instances.
Definition at line 105 of file Variable.cs.
void SiliconStudio.Shaders.Ast.Variable.MergeFrom | ( | Variable | from | ) |
Merges attributes and qualifiers from another variable.
from | The variable to merge attribute from. |
Definition at line 124 of file Variable.cs.
override string SiliconStudio.Shaders.Ast.Variable.ToString | ( | ) |
Definition at line 148 of file Variable.cs.
|
getset |
Definition at line 45 of file Variable.cs.
Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.WriteVariable().
|
getset |
Gets or sets the initial value.
The initial value.
Definition at line 69 of file Variable.cs.
Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.WriteVariable(), and SiliconStudio.Paradox.Shaders.Parser.Mixins.ShaderKeyGeneratorBase.WriteVariableAsParameterKey().
|
get |
Gets a value indicating whether this instance is group.
true
if this instance is group; otherwise, false
.
Definition at line 94 of file Variable.cs.
Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.WriteVariable().
|
getset |
Gets or sets the name.
The name.
Definition at line 77 of file Variable.cs.
Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.WriteVariable(), and SiliconStudio.Paradox.Shaders.Parser.Mixins.ShaderKeyGeneratorBase.WriteVariableAsParameterKey().
|
getset |
Gets or sets the qualifiers.
The qualifiers.
Definition at line 53 of file Variable.cs.
Referenced by SiliconStudio.Shaders.Convertor.HlslToGlslConvertor.Visit(), and SiliconStudio.Shaders.Writer.ShaderWriter.WriteVariable().
|
getset |
Gets or sets the sub variables (used only for variable group)
The sub variables inside this group.
Definition at line 85 of file Variable.cs.
|
getset |
Gets or sets the type.
The type.
Definition at line 61 of file Variable.cs.
Referenced by SiliconStudio.Paradox.Shaders.Parser.Mixins.ShaderKeyGeneratorBase.WriteVariableAsParameterKey().