public static string ToHlslFx(this SourceDescription desc) { var s = new StringBuilder(desc.ToHlsl()); s.AppendLine(@" technique t0 { pass p0 { VertexShader = compile vs_2_0 SLSharp_VertexMain(); PixelShader = compile ps_2_0 SLSharp_FragmentMain(); } } "); return(s.ToString()); }