浏览代码

shader generator: switch to consistent line endings

/main
vlad-andreev 8 年前
当前提交
8adb2307
共有 1 个文件被更改,包括 7 次插入8 次删除
  1. 15
      Assets/ShaderGenerator/CSharpToHLSL.cs

15
Assets/ShaderGenerator/CSharpToHLSL.cs


{
using (System.IO.StreamWriter writer = File.CreateText(fileName))
{
writer.WriteLine("//");
writer.WriteLine("// This file was automatically generated from " + it.Key + ". Please don't edit by hand.");
writer.WriteLine("//");
writer.WriteLine();
writer.Write("//\n");
writer.Write("// This file was automatically generated from " + it.Key + ". Please don't edit by hand.\n");
writer.Write("//\n\n");
writer.WriteLine(gen.EmitDefines());
writer.Write(gen.EmitDefines() + "\n");
}
}

{
writer.WriteLine(gen.EmitTypeDecl());
writer.Write(gen.EmitTypeDecl() + "\n");
}
}

{
writer.WriteLine(gen.EmitAccessors());
writer.Write(gen.EmitAccessors() + "\n");
writer.WriteLine();
writer.Write("\n");
}
}
}

正在加载...
取消
保存