Exemplo n.º 1
0
 public string GetFunction(RequiredFunction function)
 {
     switch (function)
     {
     default:
         throw new NotImplementedException();
     }
 }
Exemplo n.º 2
0
        public IEnumerable <NodeHelper <TranslatedMaterialGraph.NodeInfo> > GetRequiredUniforms(
            RequiredFunction requiredFunction)
        {
            switch (requiredFunction.Name)
            {
            }

            yield break;
        }
        public string GetFunction(RequiredFunction function)
        {
            switch (function.Name)
            {
            case GetNormalMatrix:
                return(_getNormalMatrix);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 4
0
        public string GetFunction(RequiredFunction function)
        {
            switch (function.Name)
            {
            case GetNormalMatrix:
                return(_getNormalMatrix);

            default:
                string txt;
                if (_dynamicFunctions.TryGetValue(function.Name, out txt))
                {
                    return(txt);
                }
                throw new NotImplementedException();
            }
        }
 private void AddFunction(RequiredFunction requiredFunction, ICodeGen codeGen)
 {
     if (!_visitedFunctions.Add(requiredFunction.Name))
     {
         return;
     }
     foreach (var uniform in codeGen.GetRequiredUniforms(requiredFunction))
     {
         Uniforms.Add(uniform);
     }
     foreach (var depFunction in codeGen.GetRequiredFunctions(requiredFunction))
     {
         AddFunction(depFunction, codeGen);
     }
     Functions.Add(requiredFunction);
 }
Exemplo n.º 6
0
 public IEnumerable <RequiredFunction> GetRequiredFunctions(RequiredFunction requiredFunction)
 {
     yield break;
 }
Exemplo n.º 7
0
 public IEnumerable <NodeHelper <NodeInfo> > GetRequiredUniforms(RequiredFunction requiredFunction)
 {
     yield break;
 }