1.Shader warning in 'Custom/1': Both vertex and fragment programs must be present in a CGPROGRAM. Excluding it from compilation.
这个我找了半天错,结果令人吐血,原来是把#pragma vertex vert拼写成了#pargma vertex vert。它竟然不直接报错,还能运行,我去
2.syntax error: unexpected token 'struct' at line 22 (on d3d11)
结构体注意要加;