still dont know why this isn't working
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
#version 450
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
layout(set = 0, binding = 0) buffer Data {
|
||||
uint data[];
|
||||
} data;
|
||||
|
||||
void main() {
|
||||
uint idx = gl_GlobalInvocationID.x;
|
||||
data.data[idx] += 100;
|
||||
uint idx = (gl_GlobalInvocationID.y * 720 + gl_GlobalInvocationID.x);
|
||||
|
||||
data.data[idx+0] = 255;
|
||||
data.data[idx+1] = 0;
|
||||
data.data[idx+2] = 0;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user