예제 #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);
 }
예제 #2
0
파일: Test.cs 프로젝트: tgsstdio/GLSLSyntax
 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);
 }
예제 #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);
 }
예제 #4
0
파일: Test.cs 프로젝트: tgsstdio/GLSLSyntax
 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);
 }
예제 #5
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);
 }
예제 #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);
 }
예제 #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[]; };");
 }
예제 #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; }; ");
 }
예제 #9
0
파일: Test.cs 프로젝트: tgsstdio/GLSLSyntax
 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[]; };");
 }
예제 #10
0
파일: Test.cs 프로젝트: tgsstdio/GLSLSyntax
 public void StructTest02()
 {
     GLSLGrammar lang = new GLSLGrammar ();
     var compiler = new Irony.Parsing.Parser (lang);
     var tree = compiler.Parse ("struct Camera { float x; int num; }; ");
 }