diff options
Diffstat (limited to 'reference/shaders/comp/insert.comp')
-rw-r--r-- | reference/shaders/comp/insert.comp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/reference/shaders/comp/insert.comp b/reference/shaders/comp/insert.comp new file mode 100644 index 00000000..47969253 --- /dev/null +++ b/reference/shaders/comp/insert.comp @@ -0,0 +1,19 @@ +#version 310 es +layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; + +layout(binding = 0, std430) buffer SSBO +{ + vec4 out_data[]; +} _27; + +void main() +{ + vec4 v; + v.x = 10.000000; + v.y = 30.000000; + v.z = 70.000000; + v.w = 90.000000; + _27.out_data[gl_GlobalInvocationID.x] = v; + _27.out_data[gl_GlobalInvocationID.x].y = 20.000000; +} + |