blob: a26c2327cc383dd02678866b53cecd6aded22d1e [file] [log] [blame]
layout(set=0, binding=0) readonly buffer inputBlock
{
uint offset;
int[] src;
};
layout(set=0, binding=1) writeonly buffer outputBlock
{
int[] dest;
};
void main() {
dest[sk_GlobalInvocationID.x] = src[sk_GlobalInvocationID.x] + src[sk_GlobalInvocationID.x + offset];
}