• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 310 es
2
3flat in mediump int   i1;
4flat in lowp    ivec2 i2;
5flat in mediump ivec3 i3;
6flat in highp   ivec4 i4;
7
8flat in mediump uint  u1;
9flat in lowp    uvec2 u2;
10flat in mediump uvec3 u3;
11flat in highp   uvec4 u4;
12
13mediump in float f1;
14lowp    in vec2  f2;
15mediump in vec3  f3;
16highp   in vec4  f4;
17
18void main()
19{
20	highp ivec4 idata = ivec4(0);
21	idata.x     += floatBitsToInt(f1);
22	idata.xy    += floatBitsToInt(f2);
23	idata.xyz   += floatBitsToInt(f3);
24	idata       += floatBitsToInt(f4);
25
26	highp uvec4 udata = uvec4(0);
27	udata.x     += floatBitsToUint(f1);
28	udata.xy    += floatBitsToUint(f2);
29	udata.xyz   += floatBitsToUint(f3);
30	udata       += floatBitsToUint(f4);
31
32	highp vec4 fdata = vec4(0.0);
33	fdata.x     += intBitsToFloat(i1);
34	fdata.xy    += intBitsToFloat(i2);
35	fdata.xyz   += intBitsToFloat(i3);
36	fdata       += intBitsToFloat(i4);
37    fdata.x     += uintBitsToFloat(u1);
38	fdata.xy    += uintBitsToFloat(u2);
39	fdata.xyz   += uintBitsToFloat(u3);
40	fdata       += uintBitsToFloat(u4);
41}