Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 1 | #version 310 es |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 2 | |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 3 | void f() { |
| 4 | ivec3 a = ivec3(1, 2, 3); |
Antonio Maiorano | e14a27b | 2022-09-19 14:05:21 +0000 | [diff] [blame] | 5 | int b = 4; |
| 6 | ivec3 r = (a + b); |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 7 | } |
Stephen White | e2f35ba | 2022-01-26 16:48:55 +0000 | [diff] [blame] | 8 | |
Stephen White | 0b39270 | 2022-01-28 22:36:58 +0000 | [diff] [blame] | 9 | layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 10 | void main() { |
| 11 | f(); |
Stephen White | 0b39270 | 2022-01-28 22:36:58 +0000 | [diff] [blame] | 12 | return; |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 13 | } |