3 GL_MESA_shader_integer_functions
5 [vertex shader passthrough]
8 #extension GL_MESA_shader_integer_functions : enable
12 uniform vec4 given_float;
13 uniform vec4 expected_mantissa;
14 uniform ivec4 expected_exponent;
18 /* Green if both pass. */
19 color = vec4(0.0, 1.0, 0.0, 1.0);
24 mantissa = frexp(given_float, exponent);
26 if (mantissa != expected_mantissa) {
30 if (exponent != expected_exponent) {
36 uniform vec4 given_float 0.0 -0.0 0.5 -0.5
37 uniform vec4 expected_mantissa 0.0 -0.0 0.5 -0.5
38 uniform ivec4 expected_exponent 0 0 0 0
40 probe all rgba 0.0 1.0 0.0 1.0
42 uniform vec4 given_float 0.49 1.0 25.0 100
43 uniform vec4 expected_mantissa 0.98 0.5 0.78125 0.78125
44 uniform ivec4 expected_exponent -1 1 5 7
46 probe all rgba 0.0 1.0 0.0 1.0
48 uniform vec4 given_float 1.1754944e-38 -1.1754944e-38 3.40282347e38 -3.40282347e38
49 uniform vec4 expected_mantissa 0.5 -0.5 0.999999940 -0.999999940
50 uniform ivec4 expected_exponent -125 -125 128 128
52 probe all rgba 0.0 1.0 0.0 1.0