Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DefaultCompilerParametersGenerator.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.Assets.Compiler;
5 using SiliconStudio.Core.Diagnostics;
6 using SiliconStudio.Paradox.Effects;
7 using SiliconStudio.Paradox.Shaders.Compiler;
8 
9 namespace SiliconStudio.Paradox.Assets.Effect.Generators
10 {
11  /// <summary>
12  /// The default implementation for <see cref="ICompilerParametersGenerator"/> simply copy a clone version of the input baseParameters. See remarks.
13  /// </summary>
14  /// <remarks>
15  /// This generator is always registered and call first in the
16  /// </remarks>
18  {
19  public int GeneratorPriority
20  {
21  get
22  {
23  return 0;
24  }
25  }
26 
28  {
29  return new List<CompilerParameters>() { baseParameters.Clone() };
30  }
31  }
32 }
The context used when compiling an asset in a Package.
IEnumerable< CompilerParameters > Generate(AssetCompilerContext context, CompilerParameters baseParameters, ILogger log)
Generates derived CompilerParameters from a base parameters.
A dynamic generator of CompilerParameters from a source parameters. See remarks.
Interface for logging.
Definition: ILogger.cs:8
The default implementation for ICompilerParametersGenerator simply copy a clone version of the input ...