2021-05-08 08:24:34 +00:00
|
|
|
// Copyright 2016-2021 The Khronos Group Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2016-05-24 19:38:42 +00:00
|
|
|
#version 310 es
|
|
|
|
layout(local_size_x = 64) in;
|
|
|
|
|
|
|
|
layout(set = 0, binding = 0, std430) readonly buffer SSBO0
|
|
|
|
{
|
|
|
|
vec4 a[];
|
|
|
|
};
|
|
|
|
|
|
|
|
layout(set = 0, binding = 1, std430) readonly buffer SSBO1
|
|
|
|
{
|
|
|
|
vec4 b[];
|
|
|
|
};
|
|
|
|
|
|
|
|
layout(set = 0, binding = 2, std430) buffer SSBO2
|
|
|
|
{
|
|
|
|
vec4 c[];
|
|
|
|
};
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
c[gl_GlobalInvocationID.x] = a[gl_GlobalInvocationID.x] * b[gl_GlobalInvocationID.x];
|
|
|
|
}
|