diff options
Diffstat (limited to 'flowy/src/shader.wgsl')
-rw-r--r-- | flowy/src/shader.wgsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/flowy/src/shader.wgsl b/flowy/src/shader.wgsl new file mode 100644 index 0000000..1597ff6 --- /dev/null +++ b/flowy/src/shader.wgsl @@ -0,0 +1,11 @@ + +@group(0) @binding(0) var output: texture_storage_2d<bgra8unorm, write>; +@group(0) @binding(1) var texa: texture_2d<f32>; + + +@compute @workgroup_size(1) fn main(@builtin(global_invocation_id) global_id: vec3<u32>) { + let p = textureLoad(texa, global_id.xy, 0); + textureStore(output, global_id.xy, p); +} + + |