Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ParameterQualifier.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.Glsl
6 {
7  /// <summary>
8  /// Specialized ParameterQualifier for Hlsl.
9  /// </summary>
11  {
12 
13  /// <summary>
14  /// Varying modifier, only for OpenGL ES 2.0.
15  /// </summary>
16  public static readonly Ast.ParameterQualifier Varying = new Ast.ParameterQualifier("varying");
17 
18  /// <summary>
19  /// Attribute modifier, only for OpenGL ES 2.0.
20  /// </summary>
21  public static readonly Ast.ParameterQualifier Attribute = new Ast.ParameterQualifier("attribute");
22 
23  /// <summary>
24  /// Internal map used for parsing.
25  /// </summary>
26  private static readonly StringEnumMap Map = PrepareParsing<ParameterQualifier>();
27 
28  /// <summary>
29  /// Parses the specified enum name.
30  /// </summary>
31  /// <param name="enumName">
32  /// Name of the enum.
33  /// </param>
34  /// <returns>
35  /// A parameter qualifier
36  /// </returns>
37  public static new Ast.ParameterQualifier Parse(string enumName)
38  {
39  return Map.ParseEnumFromName<Ast.ParameterQualifier>(enumName);
40  }
41 
42  }
43 }
Internal dictionary that provides conversion helper methods.
static new Ast.ParameterQualifier Parse(string enumName)
Parses the specified enum name.
Specialized ParameterQualifier for Hlsl.