public GLSLCodeGen(IT4Writer writer) { _writer = writer; _variables = new Dictionary <NodeHelper <TranslatedMaterialGraph.NodeInfo>, string>(); }
public void WriteLineIfDef(IT4Writer writer, string text) { writer.WriteLine(IsAlways ? null : Expression, text); }
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); }
public void WriteLineIfDef(IT4Writer writer, string text) { writer.WriteLine(GetExpression(), text); }