editing the image via vulkan compute shader

This commit is contained in:
2019-06-12 22:30:10 -07:00
parent 9b266c8d3f
commit 7a9f08c7ec
2 changed files with 40 additions and 28 deletions

View File

@@ -8,5 +8,5 @@ layout(set = 0, binding = 0) buffer Data {
void main() {
uint idx = gl_GlobalInvocationID.x;
data.data[idx] *= 12;
data.data[idx] += 30;
}