Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
CompilerResults.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.Diagnostics;
5 using SiliconStudio.Core.Storage;
6 using SiliconStudio.Paradox.Effects;
7 
8 namespace SiliconStudio.Paradox.Shaders.Compiler
9 {
10  /// <summary>
11  /// Result of a compilation.
12  /// </summary>
14  {
15  /// <summary>
16  /// Initializes a new instance of the <see cref="LoggerResult" /> class.
17  /// </summary>
18  public CompilerResults() : base(null)
19  {
20  Bytecodes = new Dictionary<string, EffectBytecode>();
21  UsedParameters = new Dictionary<string, ShaderMixinParameters>();
22  }
23 
24  /// <summary>
25  /// Gets or sets the main bytecode.
26  /// </summary>
27  /// <value>
28  /// The main bytecode.
29  /// </value>
30  public EffectBytecode MainBytecode { get; set; }
31 
32  /// <summary>
33  /// Gets the bytecode. May be null if <see cref="LoggerResult.HasErrors"/> is <c>true</c>.
34  /// </summary>
35  /// <value>The bytecode.</value>
36  public Dictionary<string, EffectBytecode> Bytecodes { get; set; }
37 
38  /// <summary>
39  /// Parameters used to create this shader.
40  /// </summary>
41  /// <value>The ParameterCollection.</value>
42  public ParameterCollection MainUsedParameters { get; set; }
43 
44  /// <summary>
45  /// List of all the used parameters per child.
46  /// </summary>
47  public Dictionary<string, ShaderMixinParameters> UsedParameters { get; set; }
48  }
49 }
A logger that stores messages locally useful for internal log scenarios.
Definition: LoggerResult.cs:14
CompilerResults()
Initializes a new instance of the LoggerResult class.
Contains a compiled shader with bytecode for each stage.
A container to handle a hierarchical collection of effect variables.