Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ShaderMixinSourceTree.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.Collections.Generic;
4 using SiliconStudio.Core;
5 
6 namespace SiliconStudio.Paradox.Shaders
7 {
8  /// <summary>
9  /// Contains a tree of <see cref="ShaderMixinSource"/>.
10  /// </summary>
11  [DataContract]
12  public sealed class ShaderMixinSourceTree
13  {
14  /// <summary>
15  /// Initializes a new instance of the <see cref="ShaderMixinSourceTree"/> class.
16  /// </summary>
18  : this(null)
19  {
20  }
21 
22  /// <summary>
23  /// Initializes a new instance of the <see cref="ShaderMixinSource"/> class.
24  /// </summary>
25  /// <param name="parent">The parent.</param>
27  {
28  Parent = parent;
29  Children = new Dictionary<string, ShaderMixinSourceTree>();
30  Mixin = new ShaderMixinSource();
31  }
32 
33  /// <summary>
34  /// Gets or sets the name of the pdxfx effect linked to this node.
35  /// </summary>
36  /// <value>The name of the pdxfx effect.</value>
37  public string Name { get; set; }
38 
39  /// <summary>
40  /// Gets or sets the mixin.
41  /// </summary>
42  /// <value>The mixin.</value>
43  public ShaderMixinSource Mixin { get; set; }
44 
45  /// <summary>
46  /// Gets or sets the parent.
47  /// </summary>
48  /// <value>The parent.</value>
49  public ShaderMixinSourceTree Parent { get; set; }
50 
51  /// <summary>
52  /// Gets or sets the children.
53  /// </summary>
54  /// <value>The children.</value>
55  public Dictionary<string, ShaderMixinSourceTree> Children { get; set; }
56  }
57 }
A mixin performing a combination of ShaderClassSource and other mixins.
ShaderMixinSourceTree(ShaderMixinSourceTree parent)
Initializes a new instance of the ShaderMixinSource class.
ShaderMixinSourceTree()
Initializes a new instance of the ShaderMixinSourceTree class.