glslang/Test/hlsl.deadFunctionMissingBody.vert
John Kessenich 906cc21816 Linker: Eliminate uncalled functions, because they can be ill-defined.
Fixes issue #610. Also provides a testing option to keep uncalled functions.
2016-12-09 19:22:20 -07:00

9 lines
199 B
GLSL

float4 main(): SV_Target0 { return 0; }
struct Surface { float3 albedo; };
Surface surfaceShader(float fade);
Surface surfaceShaderExec()
{
float fade = 0;
return surfaceShader(0);
}