This commit is contained in:
2019-06-13 00:56:52 -07:00
parent 7a9f08c7ec
commit e8d94e4ba7
2 changed files with 34 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
#version 450
layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in;
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(set = 0, binding = 0) buffer Data {
uint data[];
@@ -8,5 +8,5 @@ layout(set = 0, binding = 0) buffer Data {
void main() {
uint idx = gl_GlobalInvocationID.x;
data.data[idx] += 30;
data.data[idx] += 100;
}