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 | 863d9ed | 2022-09-02 19:19:10 +0000 | [diff] [blame] | 3 | layout(binding = 0, std430) buffer S_ssbo { |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 4 | int a[]; |
| 5 | } G; |
Stephen White | 863d9ed | 2022-09-02 19:19:10 +0000 | [diff] [blame] | 6 | |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 7 | void tint_symbol() { |
Stephen White | 6d77009 | 2022-02-05 00:20:54 +0000 | [diff] [blame] | 8 | uint l1 = uint(G.a.length()); |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 9 | } |
Stephen White | e2f35ba | 2022-01-26 16:48:55 +0000 | [diff] [blame] | 10 | |
Stephen White | 0b39270 | 2022-01-28 22:36:58 +0000 | [diff] [blame] | 11 | 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] | 12 | void main() { |
| 13 | tint_symbol(); |
Stephen White | 0b39270 | 2022-01-28 22:36:58 +0000 | [diff] [blame] | 14 | return; |
Stephen White | 2fe0f4b | 2021-11-16 15:15:36 +0000 | [diff] [blame] | 15 | } |