diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-01 13:57:32 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-04-01 13:57:32 +0200 |
| commit | e579ae120290329fd697b50ea9138ffccb65a805 (patch) | |
| tree | 12a63ee60b00e5004a1806ddf3ebd70c012e3e28 /rust/crates/gpu/src/shaders/blit.wgsl | |
| parent | b048b739bd598f9d9ff97166f29bcb6e37c40607 (diff) | |
| download | opencut-e579ae120290329fd697b50ea9138ffccb65a805.tar.gz | |
feat: migrate GPU renderer from WebGL to wgpu/WASM
Diffstat (limited to 'rust/crates/gpu/src/shaders/blit.wgsl')
| -rw-r--r-- | rust/crates/gpu/src/shaders/blit.wgsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rust/crates/gpu/src/shaders/blit.wgsl b/rust/crates/gpu/src/shaders/blit.wgsl new file mode 100644 index 00000000..2be67288 --- /dev/null +++ b/rust/crates/gpu/src/shaders/blit.wgsl @@ -0,0 +1,12 @@ +struct VertexOutput { + @builtin(position) position: vec4f, + @location(0) tex_coord: vec2f, +} + +@group(0) @binding(0) var input_texture: texture_2d<f32>; +@group(0) @binding(1) var input_sampler: sampler; + +@fragment +fn fragment_main(input: VertexOutput) -> @location(0) vec4f { + return textureSample(input_texture, input_sampler, input.tex_coord); +} |
