| | #version 110 |
| |
|
| | int f(int a, int b, int c) |
| | { |
| | int a = b; |
| |
|
| | { |
| | float a = float(a) + 1.0; |
| | } |
| |
|
| | return a; |
| | } |
| |
|
| | int f(int a, int b, int c); |
| |
|
| | bool b; |
| | float b(int a); |
| |
|
| | float c(int a); |
| | bool c; |
| |
|
| | float f; |
| | float tan; |
| | float sin(float x); |
| | float cos(float x) |
| | { |
| | return 1.0; |
| | } |
| | bool radians(bool x) |
| | { |
| | return true; |
| | } |
| |
|
| | int gi = f(1,2,3); |
| |
|
| | void main() |
| | { |
| | int g(); |
| | g(); |
| |
|
| | float sin; |
| | sin; |
| | sin(0.7); |
| | f(1,2,3); |
| |
|
| | float f; |
| | f = 3.0; |
| |
|
| | gl_Position = vec4(f); |
| |
|
| | for (int f = 0; f < 10; ++f) |
| | ++f; |
| |
|
| | int x = 1; |
| | { |
| | float x = 2.0, y = x; |
| | int z = z; |
| | } |
| | { |
| | int x = x; |
| | } |
| |
|
| | struct S |
| | { |
| | int x; |
| | }; |
| | { |
| | S S = S(0); |
| | S.x; |
| | } |
| |
|
| | int degrees; |
| | degrees(3.2); |
| |
|
| | { |
| | S s; |
| | s.x = 3; |
| | struct S { |
| | bool b; |
| | }; |
| | S t; |
| | t.b = true; |
| | struct S { |
| | float f; |
| | }; |
| | } |
| | } |
| |
|