#version 310 es | |
layout(binding = 0, std430) | |
buffer s_block_1_ssbo { | |
vec3 inner; | |
} v_1; | |
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; | |
void main() { | |
vec3 v = vec3(1.0f, 2.0f, 3.0f); | |
float scalar = v[1u]; | |
vec2 swizzle2 = v.xz; | |
vec3 swizzle3 = v.xzy; | |
vec3 v_2 = vec3(scalar); | |
v_1.inner = ((v_2 + vec3(swizzle2, 1.0f)) + swizzle3); | |
} |