Skip to content

Commit fe19cd7

Browse files
committed
shader generator: switch to consistent line endings
1 parent 5aea001 commit fe19cd7

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

Assets/ShaderGenerator/CSharpToHLSL.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,36 +106,35 @@ public static void GenerateAll()
106106
{
107107
using (System.IO.StreamWriter writer = File.CreateText(fileName))
108108
{
109-
writer.WriteLine("//");
110-
writer.WriteLine("// This file was automatically generated from " + it.Key + ". Please don't edit by hand.");
111-
writer.WriteLine("//");
112-
writer.WriteLine();
109+
writer.Write("//\n");
110+
writer.Write("// This file was automatically generated from " + it.Key + ". Please don't edit by hand.\n");
111+
writer.Write("//\n\n");
113112

114113
foreach (var gen in it.Value)
115114
{
116115
if (gen.hasStatics)
117116
{
118-
writer.WriteLine(gen.EmitDefines());
117+
writer.Write(gen.EmitDefines() + "\n");
119118
}
120119
}
121120

122121
foreach (var gen in it.Value)
123122
{
124123
if (gen.hasFields)
125124
{
126-
writer.WriteLine(gen.EmitTypeDecl());
125+
writer.Write(gen.EmitTypeDecl() + "\n");
127126
}
128127
}
129128

130129
foreach (var gen in it.Value)
131130
{
132131
if (gen.hasFields)
133132
{
134-
writer.WriteLine(gen.EmitAccessors());
133+
writer.Write(gen.EmitAccessors() + "\n");
135134
}
136135
}
137136

138-
writer.WriteLine();
137+
writer.Write("\n");
139138
}
140139
}
141140
}

0 commit comments

Comments
 (0)