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 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); }
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); }
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); }
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); }
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[]; };"); }
public void StructTest02() { GLSLGrammar lang = new GLSLGrammar(); var compiler = new Irony.Parsing.Parser(lang); var tree = compiler.Parse("struct Camera { float x; int num; }; "); }
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[]; };"); }
public void StructTest02() { GLSLGrammar lang = new GLSLGrammar (); var compiler = new Irony.Parsing.Parser (lang); var tree = compiler.Parse ("struct Camera { float x; int num; }; "); }