コード例 #1
0
        public FunctionBuilder(GLSLType returnType, string functionName, HashSet<Variable> parameters = null)
        {
            ReturnType = returnType;
            FunctionName = functionName;

            if (parameters != null)
                Parameters = parameters;
        }
コード例 #2
0
        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]);
        }
コード例 #3
0
        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]);
        }
コード例 #4
0
 public Variable(string name, GLSLType property, GLSLQualifier qualifier = null)
 {
     PropertyName = name;
     PropertyType = property;
     Qualifier    = qualifier;
 }
コード例 #5
0
 public Variable(string name, GLSLType property, GLSLQualifier qualifier = null)
 {
     PropertyName = name;
     PropertyType = property;
     Qualifier = qualifier;
 }