Paradox Game Engine
v1.0.0 beta06
Main Page
Related Pages
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Events
Macros
Pages
Parameter.cs
Go to the documentation of this file.
1
// Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2
// This file is distributed under GPL v3. See LICENSE.md for details.
3
using
System
;
4
5
namespace
SiliconStudio.Shaders.Ast
6
{
7
/// <summary>
8
/// A single parameter declaration.
9
/// </summary>
10
public
class
Parameter
:
Variable
11
{
12
[VisitorIgnore]
13
private
MethodDeclaration
declaringMethod;
14
15
/// <summary>
16
/// Initializes a new instance of the <see cref="Parameter"/> class.
17
/// </summary>
18
public
Parameter
()
19
{
20
}
21
22
/// <summary>
23
/// Initializes a new instance of the <see cref="Parameter"/> class.
24
/// </summary>
25
/// <param name="type">The type.</param>
26
/// <param name="name">The name.</param>
27
/// <param name="initialValue">The initial value.</param>
28
public
Parameter
(
TypeBase
type,
string
name = null,
Expression
initialValue = null)
29
: base(type, name, initialValue)
30
{
31
}
32
33
#region Public Properties
34
35
/// <summary>
36
/// Gets or sets the declaring method.
37
/// </summary>
38
/// <value>
39
/// The declaring method.
40
/// </value>
41
public
MethodDeclaration
DeclaringMethod
42
{
43
get
44
{
45
return
declaringMethod;
46
}
47
set
48
{
49
declaringMethod = value;
50
}
51
}
52
53
#endregion
54
}
55
}
SiliconStudio.Shaders.Ast.Parameter.Parameter
Parameter(TypeBase type, string name=null, Expression initialValue=null)
Initializes a new instance of the Parameter class.
Definition:
Parameter.cs:28
SiliconStudio.Shaders.Parser.System
A system file.
SiliconStudio.Shaders.Ast.Variable
A variable declaration.
Definition:
Variable.cs:11
SiliconStudio.Shaders.Ast.Parameter
A single parameter declaration.
Definition:
Parameter.cs:10
SiliconStudio.Shaders.Ast.TypeBase
Base type for all types.
Definition:
TypeBase.cs:11
SiliconStudio.Shaders.Ast.Expression
An expression.
Definition:
Expression.cs:12
SiliconStudio.Shaders.Ast.Parameter.Parameter
Parameter()
Initializes a new instance of the Parameter class.
Definition:
Parameter.cs:18
SiliconStudio.Shaders.Ast.MethodDeclaration
Declaration of a method.
Definition:
MethodDeclaration.cs:12
sources
common
shaders
SiliconStudio.Shaders
Ast
Parameter.cs
Generated on Sat Dec 20 2014 21:51:25 for Paradox Game Engine by
1.8.7