Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Shader.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 using System.Collections;
5 using System.Collections.Generic;
6 
7 namespace SiliconStudio.Shaders.Ast
8 {
9  /// <summary>
10  /// Toplevel container of a shader parsing result.
11  /// </summary>
12  public class Shader : Node
13  {
14  #region Constructors and Destructors
15 
16  /// <summary>
17  /// Initializes a new instance of the <see cref = "Shader" /> class.
18  /// </summary>
19  public Shader()
20  {
21  Declarations = new List<Node>();
22  }
23 
24  #endregion
25 
26  #region Public Properties
27 
28  /// <summary>
29  /// Gets or sets the declarations.
30  /// </summary>
31  /// <value>
32  /// The declarations.
33  /// </value>
34  public List<Node> Declarations { get; set; }
35 
36  #endregion
37 
38  #region Public Methods
39 
40  /// <inheritdoc />
41  public override IEnumerable<Node> Childrens()
42  {
43  return Declarations;
44  }
45 
46  #endregion
47  }
48 }
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes
Definition: Shader.cs:41
Abstract node.
Definition: Node.cs:15
Shader()
Initializes a new instance of the Shader class.
Definition: Shader.cs:19
Toplevel container of a shader parsing result.
Definition: Shader.cs:12