• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 460
2#extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable
3void main()
4{
5    float w1   = 00000.000;
6    float w2   = 1.0;
7    float w3   = 007.00;
8    float w4   = 000130000.0;
9    float w5   = 123456789.0000;
10    double w6  = 1234567890123456.0;
11    double w7  = 12345678901234567.0;
12    double w8  = 123456789012345678.0;
13    double w9  = 12345678901234567893.0;
14    double w10 = 1234567890123456789012345.0;
15
16    float e1 = 0e0;
17    float e2 = 1e0;
18    float e3 = 0e14;
19    float e4 = 1e15;
20    float e5 = 1e16;
21    float e6 = 0e-14;
22    float e7 = 1e-15;
23    float e8 = 1e-16;
24    double e9 = 1e100;
25    double e10 = 1e+308;
26    double e11 = 1e-307; // Was 1e-323, but that's flushed to zero sometimes. 1e-308 can be flushed to 0.
27    double e12 = 1e+309;
28    double e13 = 1e-324;
29    double e24 = 1e+999;
30    double e25 = 1e-999;
31
32    double f1 = 0.5;
33    double f2 = 0.125;
34    double f31 = 0.1;
35    double f32 = 0.2;
36    double f33 = 0.3;
37    double f34 = 0.4;
38    double f35 = 0.5;
39    double f36 = 0.6;
40    double f37 = 0.7;
41    double f38 = 0.8;
42    double f39 = 0.9;
43    double f4 = 0.33333333333333333333333333333333333333333333333333333333333333333333333333333;
44    double f51 = 0.000000000000000000000000000000000000783475;
45    double f52 = 0.0000000000000000000000000000000000007834750;
46    double f53 = .00000000000000000000000000000000000078347500;
47    double f54 = 0.000000000000000000000000000000000000783475000000;
48    double f61 = 4.;
49    double f62 = 40.;
50    double f63 = 0.;
51    double f64 = 04.;
52    double f65 = .0;
53    double f66 = .004;
54    double f67 = .400;
55    double f68 = .04000;
56
57    double c1  = .081e-2;
58    double c2  = .073e2;
59    double c3  = 34.5e-1;
60    double c4  = 35.7e-4;
61    double c5  = 43.9e1;
62    double c6  = 52.2e4;
63    double c7  = 000610000e2;
64    double c8  = 000610000e-6;
65    double c9  = 000001234567890123450000.0;
66    double c10 = 000999999999999999999000.0;
67    double c11 = 0001230000.0045600000;
68    double c12 = 0001230000.00405600000e-3;
69    double c13 = 0001230000.004500600000e-4;
70    double c14 = 00010230000.0045600000e-5;
71    double c15 = 000120030000.0045600000e4;
72    double c16 = 0001230000.0045600000e5;
73    double c17 = 0001230000.0045600000e6;
74    double c18 = 0001230000.00456007e6;
75
76    double b11 = 72057594037927928.0;
77    double b12 = 72057594037927936.0;
78    double b13 = 72057594037927932.0;
79    double b14 = 7205759403792793199999e-5;
80    double b15 = 7205759403792793200001e-5;
81    double b21 = 9223372036854774784.0;
82    double b22 = 9223372036854775808.0;
83    double b23 = 9223372036854775296.0;
84    double b24 = 922337203685477529599999e-5;
85    double b25 = 922337203685477529600001e-5;
86    double b31 = 10141204801825834086073718800384.0;
87    double b32 = 10141204801825835211973625643008.0;
88    double b33 = 10141204801825834649023672221696.0;
89    double b34 = 1014120480182583464902367222169599999e-5;
90    double b35 = 1014120480182583464902367222169600001e-5;
91    double b41 = 5708990770823838890407843763683279797179383808.0;
92    double b42 = 5708990770823839524233143877797980545530986496.0;
93    double b43 = 5708990770823839207320493820740630171355185152.0;
94    double b44 = 5708990770823839207320493820740630171355185151999e-3;
95    double b45 = 5708990770823839207320493820740630171355185152001e-3;
96
97    float pi1 = 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679f;
98    float pi2 = 3.14159265358979f;
99    float pi3 = 3.141592653589793f;
100
101    double dpi1 = 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679;
102    double dpi2 = 3.14159265358979;
103    double dpi3 = 3.141592653589793;
104
105    float dfpi1 = 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679f;
106    float dfpi2 = 3.14159265358979f;
107    float dfpi3 = 3.141592653589793f;
108
109    double lfpi1 = 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679LF;
110    double lfpi2 = 3.14159265358979Lf;
111    double lfpi3 = 3.141592653589793lF;
112
113    double hfpi1 = 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679hF;
114    double hfpi2 = 3.14159265358979hF;
115    double hfpi3 = 3.141592653589793hf;
116}
117