private void GenStruct(string structName, ShaderStringBuilder builder, string makeDefine = "") { builder.AppendLine($"struct {structName}"); builder.AppendLine("{"); using (builder.IndentScope()) { foreach (var bn in customBlockNodes) { builder.AppendLine($"float{(int)bn.customWidth} {bn.customName};"); } } builder.AppendLine("};"); if (makeDefine != null && makeDefine != "") { builder.AppendLine($"#define {makeDefine}"); } builder.AppendNewLine(); }