This works fine:
#[spirv(fragment)]pubfnmain_fs(in_color:Vec3,out_frag_color:&mutVec4,){*out_frag_color = vec4(in_color.x, in_color.y, in_color.z,1.0);}This silently does not output a fragment shader:
#[spirv(fragment)]pubfnmain_fs(in_color:Vec3,out_frag_color:&mutVec4,){
out_frag_color.x = in_color.x;
out_frag_color.y = in_color.y;
out_frag_color.z = in_color.z;}Rather than failing silently, it should probably be an error when an entire shader is dead code / compiled out and does not produce an artifact.
This works fine:
This silently does not output a fragment shader:
Rather than failing silently, it should probably be an error when an entire shader is dead code / compiled out and does not produce an artifact.