Home | History | Annotate | Download | only in baseResults
      1 #version 310 es
      2 
      3 
      4 
      5 
      6 
      7 
      8 
      9 
     10 
     11 
     12 
     13 
     14              float fn(float x){ return x + 4.0;}
     15 
     16 int main(){
     17   gl_Position = vec4(1);
     18   gl_Position = clamp(1, 2, 3);
     19   gl_Position = vec4(1);
     20   gl_Position = vec4(1, 2);
     21   gl_Position = vec4(fn(3));
     22   []. ++ --
     23   + - * % / - ! ~
     24   << >> < > <= >=
     25   == !=
     26   & ^ | && ^^ || ? :
     27   += -= *= /= %= <<= >>= &= |= ^=
     28   1.2 2E10 5u - 5l f
     29 }
     30 
     31 struct S {
     32     int member1;
     33     float member2;
     34     vec4 member3;
     35 };
     36 
     37 
     38 
     39 
     40 
     41 
     42 
     43 
     44 
     45 
     46 
     47 
     48 
     49 void foo()
     50 {
     51     S s;
     52     s . member2 + s . member1;
     53     s . member3 . zyx;
     54     s . member2 . xxyz;
     55     s . member2 . yyz;
     56     s . member2 . xxyz();
     57     s . member2 . yzy;
     58             vec3 a = vec3(0);vec3 b = a . zxyz;vec3 b = a . xxyz;vec3 b = a . yyz;vec3 b = a . xxyz();vec3 b = a . yzy;vec3 b = a . z;
     59 
     60 
     61      yyz;
     62     yzy
     63 
     64 
     65 }
     66 
     67