4 input float in0 = [ 1.123 | 0.75 | -512.0 | -72.13 | 199.91 | -1.123 | -0.75 | 512.0 | -72.13 | -199.91 ];
5 output float out0 = [ 1.123 | 0.75 | -512.0 | -72.13 | 199.91 | -1.123 | -0.75 | 512.0 | -72.13 | -199.91 ];
22 uniform float uni0 = [ 1.123 | 0.75 | -512.0 | -72.13 | 199.91 ];
23 output float out0 = [ 1.123 | 0.75 | -512.0 | -72.13 | 199.91 ];
27 precision highp float;
39 values { output float out0 = 1.123; }
41 precision highp float;
52 values { output float out0 = -1.123; }
54 precision highp float;
65 values { output float out0 = 123.0; }
67 precision highp float;
78 values { output float out0 = 0.123; }
80 precision highp float;
91 values { output float out0 = 123.0; }
93 precision highp float;
104 values { output float out0 = -123.0; }
106 precision highp float;
117 values { output float out0 = -123.0; }
119 precision highp float;
130 values { output float out0 = 0.123; }
132 precision highp float;
143 values { output float out0 = 1000.0; }
145 precision highp float;
156 values { output int out0 = 123; }
158 precision highp float;
169 values { output int out0 = -321; }
171 precision highp float;
182 values { output int out0 = 123; }
184 precision highp float;
195 values { output int out0 = 123; }
197 precision highp float;
208 values { output int out0 = 123; }
210 precision highp float;
221 values { output bool out0 = true; }
223 precision highp float;
234 values { output bool out0 = false; }
236 precision highp float;
246 case const_float_global
247 values { output float out0 = 1000.0; }
250 precision mediump float;
252 const float theConstant = 1000.0;
261 case const_float_main
262 values { output float out0 = -1000.0; }
265 precision mediump float;
269 const float theConstant = -1000.0;
276 case const_float_function
277 values { output float out0 = -0.012; }
280 precision mediump float;
284 const float theConstant = -0.012;
295 case const_float_scope
296 values { output float out0 = 1.0; }
299 precision mediump float;
304 const float theConstant = 1.0;
312 case const_float_scope_shawdowing_1
313 values { output float out0 = 1.0; }
316 precision mediump float;
320 const float theConstant = 100.0;
322 const float theConstant = 1.0;
330 case const_float_scope_shawdowing_2
331 values { output float out0 = 1.0; }
334 precision mediump float;
336 const float theConstant = 100.0;
340 const float theConstant = 1.0;
348 case const_float_scope_shawdowing_3
349 values { output float out0 = 1.0; }
352 precision mediump float;
354 const float theConstant = 100.0;
357 const float theConstant = -100.0;
359 const float theConstant = 1.0;
367 case const_float_scope_shawdowing_4
368 values { output float out0 = 2.0; }
371 precision mediump float;
373 const float theConstant = 100.0;
376 const float theConstant = 2.0;
381 const float theConstant = -100.0;
383 const float theConstant = 1.0;
391 case const_float_operations_with_const
392 values { output float out0 = 21.0; }
395 precision mediump float;
397 const float theGlobalConstant = 10.0;
400 const float theConstant = 2.0;
405 const float theConstant = -100.0;
407 const float theConstant = 1.0;
408 out0 = func() * theGlobalConstant + theConstant;
415 case const_float_assignment_1
416 values { output float out0 = 10.0; }
419 precision mediump float;
423 const float theConstant1 = 10.0;
424 const float theConstant2 = theConstant1;
431 case const_float_assignment_2
432 values { output float out0 = 10.0; }
435 precision mediump float;
439 const float theConstant1 = 10.0;
441 const float theConstant2 = theConstant1;
449 case const_float_assignment_3
450 values { output float out0 = 10.0; }
453 precision mediump float;
455 const float theConstant1 = 10.0;
458 const float theConstant2 = theConstant1;
465 case const_float_assignment_4
466 values { output float out0 = 10.0; }
469 precision mediump float;
471 const float theConstant1 = 10.0;
474 const float theConstant2 = theConstant1;
485 case const_float_assign_uniform
487 values { output float out0 = 10.0; }
489 precision mediump float;
491 uniform float theUniform;
494 const float theConstant = theUniform;
501 case const_float_assign_varying
503 values { output float out0 = 10.0; }
505 ${VERTEX_DECLARATIONS}
506 varying float theVarying;
510 gl_Position = vec(1.0);
514 precision mediump float;
515 ${FRAGMENT_DECLARATIONS}
516 varying float theVarying;
519 const float theConstant = theVarying;
526 case const_float_function_gotcha
527 desc "Function constant parameters are not really constants, so using them as constant expressions should fail."
529 values { output float out0 = 20.0; }
531 precision mediump float;
533 float func(const float gotcha)
535 const float theConstant2 = gotcha;
536 return theConstant2*2.0;
540 const float theConstant = 10.0;
541 out0 = func(theConstant);
547 case const_float_from_int
548 values { output float out0 = 10.0; }
551 precision mediump float;
553 const float theConstant = float(10);
562 case const_float_from_vec2
563 values { output float out0 = 10.0; }
566 precision mediump float;
568 const float theConstant = vec2(1.0, 10.0).y;
577 case const_float_from_vec3
578 values { output float out0 = 10.0; }
581 precision mediump float;
583 const float theConstant = vec3(1.0, 10.0, 20.0).y;
592 case const_float_from_vec4
593 values { output float out0 = 10.0; }
596 precision mediump float;
598 const float theConstant = vec4(1.0, 10.0, 20.0, -10.0).y;
607 case const_float_assign_variable_1
609 values { output float out0 = 20.0; }
611 precision mediump float;
615 float theVariable = 20.0;
616 const float theConstant = theVariable;
623 case const_float_assign_variable_2
625 values { output float out0 = 50.0; }
627 precision mediump float;
631 float theVariable = 20.0;
633 const float theConstant = theVariable;
640 case const_float_assign_user_func
642 values { output float out0 = 50.0; }
644 precision mediump float;
652 const float theConstant = func();