Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl/frag/various-glsl-ops.frag

raw
1 static float2 interpolant;
2 static float4 FragColor;
3
4 struct SPIRV_Cross_Input
5 {
6 float2 interpolant : TEXCOORD0;
7 };
8
9 struct SPIRV_Cross_Output
10 {
11 float4 FragColor : SV_Target0;
12 };
13
14 void frag_main()
15 {
16 float4 color = float4(0.0f, 0.0f, 0.0f, EvaluateAttributeSnapped(interpolant, 0.100000001490116119384765625f.xx).x);
17 color += float4(0.0f, 0.0f, 0.0f, ddx_coarse(interpolant.x));
18 FragColor = color;
19 }
20
21 SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
22 {
23 interpolant = stage_input.interpolant;
24 frag_main();
25 SPIRV_Cross_Output stage_output;
26 stage_output.FragColor = FragColor;
27 return stage_output;
28 }