예제 #1
0
 public GLSLCodeGen(IT4Writer writer)
 {
     _writer    = writer;
     _variables = new Dictionary <NodeHelper <TranslatedMaterialGraph.NodeInfo>, string>();
 }
예제 #2
0
 public void WriteLineIfDef(IT4Writer writer, string text)
 {
     writer.WriteLine(IsAlways ? null : Expression, text);
 }
예제 #3
0
 public HLSLCodeGen(IT4Writer writer)
 {
     _writer    = writer;
     _variables = new Dictionary <NodeHelper <NodeInfo>, string>();
 }
        public void WriteLineIfDef(IT4Writer writer, string str)
        {
            var ifdef = Optimize();

            writer.WriteLine(ifdef, str);
        }
예제 #5
0
 public void WriteLineIfDef(IT4Writer writer, string text)
 {
     writer.WriteLine(GetExpression(), text);
 }