Example #1
0
 public void StructTest01()
 {
     GLSLGrammar lang     = new GLSLGrammar();
     var         compiler = new Irony.Parsing.Parser(lang);
     var         tree     = compiler.Parse("struct Camera { float x;}");
     //CheckNodes (tree.Root, 0);
 }
Example #2
0
 public void TestCase()
 {
     GLSLGrammar lang = new GLSLGrammar ();
     var compiler = new Irony.Parsing.Parser(lang);
     var tree = compiler.Parse ("void main(void) { float v = vec3(1,1,1); }");
     //CheckNodes (tree.Root, 0);
 }
Example #3
0
 public void TestCase()
 {
     GLSLGrammar lang     = new GLSLGrammar();
     var         compiler = new Irony.Parsing.Parser(lang);
     var         tree     = compiler.Parse("void main(void) { float v = vec3(1,1,1); }");
     //CheckNodes (tree.Root, 0);
 }
Example #4
0
 public void StructTest01()
 {
     GLSLGrammar lang = new GLSLGrammar ();
     var compiler = new Irony.Parsing.Parser(lang);
     var tree = compiler.Parse ("struct Camera { float x;}");
     //CheckNodes (tree.Root, 0);
 }
 public GLSLUniformExtractor(IGLSLTypeLookup lookup)
 {
     mTypeLookup = lookup;
     mLayouts = new StringCollection ();
     mUniforms = new Dictionary<string, StructMember> ();
     mBlocks = new Dictionary<string, StructInfo> ();
     mAttributes = new Dictionary<string, InputAttribute> ();
     mLanguage = new GLSLGrammar ();
     mCompiler = new Parser (mLanguage);
 }
Example #6
0
 public GLSLUniformExtractor(IGLSLTypeLookup lookup)
 {
     mTypeLookup = lookup;
     mLayouts    = new StringCollection();
     mUniforms   = new Dictionary <string, StructMember> ();
     mBlocks     = new Dictionary <string, StructInfo> ();
     mAttributes = new Dictionary <string, InputAttribute> ();
     mLanguage   = new GLSLGrammar();
     mCompiler   = new Parser(mLanguage);
 }
Example #7
0
 public void StructTest04()
 {
     GLSLGrammar lang     = new GLSLGrammar();
     var         compiler = new Irony.Parsing.Parser(lang);
     var         tree     = compiler.Parse("struct Camera { float x; int num; vec3 output; vec2 data[10]; vec4 grid[3][4]; bool samples[]; };");
 }
Example #8
0
 public void StructTest02()
 {
     GLSLGrammar lang     = new GLSLGrammar();
     var         compiler = new Irony.Parsing.Parser(lang);
     var         tree     = compiler.Parse("struct Camera { float x; int num; }; ");
 }
Example #9
0
 public void StructTest04()
 {
     GLSLGrammar lang = new GLSLGrammar ();
     var compiler = new Irony.Parsing.Parser (lang);
     var tree = compiler.Parse ("struct Camera { float x; int num; vec3 output; vec2 data[10]; vec4 grid[3][4]; bool samples[]; };");
 }
Example #10
0
 public void StructTest02()
 {
     GLSLGrammar lang = new GLSLGrammar ();
     var compiler = new Irony.Parsing.Parser (lang);
     var tree = compiler.Parse ("struct Camera { float x; int num; }; ");
 }