public FunctionBuilder(GLSLType returnType, string functionName, HashSet<Variable> parameters = null) { ReturnType = returnType; FunctionName = functionName; if (parameters != null) Parameters = parameters; }
public Variable(string stringVarInfo) { var sections = stringVarInfo.Split(' '); if (sections.Length < 2) return; PropertyName = sections.Last(); PropertyType = new GLSLType(sections[sections.Length - 2]); if (sections.Length < 3) return; Qualifier = new GLSLQualifier(sections[sections.Length - 3]); }
public Variable(string stringVarInfo) { var sections = stringVarInfo.Split(' '); if (sections.Length < 2) { return; } PropertyName = sections.Last(); PropertyType = new GLSLType(sections[sections.Length - 2]); if (sections.Length < 3) { return; } Qualifier = new GLSLQualifier(sections[sections.Length - 3]); }
public Variable(string name, GLSLType property, GLSLQualifier qualifier = null) { PropertyName = name; PropertyType = property; Qualifier = qualifier; }