| #version 310 es | |
| layout(binding = 0, std430) | |
| buffer s_block_1_ssbo { | |
| int inner; | |
| } v; | |
| layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; | |
| void main() { | |
| int x = 42; | |
| int empty[4] = int[4](0, 0, 0, 0); | |
| int nonempty[4] = int[4](1, 2, 3, 4); | |
| int nonempty_with_expr[4] = int[4](1, x, (x + 1), nonempty[3u]); | |
| int nested_empty[2][3][4] = int[2][3][4](int[3][4](int[4](0, 0, 0, 0), int[4](0, 0, 0, 0), int[4](0, 0, 0, 0)), int[3][4](int[4](0, 0, 0, 0), int[4](0, 0, 0, 0), int[4](0, 0, 0, 0))); | |
| int nested_nonempty[2][3][4] = int[2][3][4](int[3][4](int[4](1, 2, 3, 4), int[4](5, 6, 7, 8), int[4](9, 10, 11, 12)), int[3][4](int[4](13, 14, 15, 16), int[4](17, 18, 19, 20), int[4](21, 22, 23, 24))); | |
| int v_1[4] = int[4](1, 2, x, (x + 1)); | |
| int nested_nonempty_with_expr[2][3][4] = int[2][3][4](int[3][4](v_1, int[4](5, 6, nonempty[2u], (nonempty[3u] + 1)), nonempty), nested_nonempty[1u]); | |
| int subexpr_empty = 0; | |
| int subexpr_nonempty = 3; | |
| int subexpr_nonempty_with_expr = int[4](1, x, (x + 1), nonempty[3u])[2u]; | |
| int subexpr_nested_empty[4] = int[4](0, 0, 0, 0); | |
| int subexpr_nested_nonempty[4] = int[4](5, 6, 7, 8); | |
| int subexpr_nested_nonempty_with_expr[4] = int[2][4](int[4](1, x, (x + 1), nonempty[3u]), nested_nonempty[1u][2u])[1u]; | |
| v.inner = (((((((((((empty[0u] + nonempty[0u]) + nonempty_with_expr[0u]) + nested_empty[0u][0u][0u]) + nested_nonempty[0u][0u][0u]) + nested_nonempty_with_expr[0u][0u][0u]) + subexpr_empty) + subexpr_nonempty) + subexpr_nonempty_with_expr) + subexpr_nested_empty[0u]) + subexpr_nested_nonempty[0u]) + subexpr_nested_nonempty_with_expr[0u]); | |
| } |