From e579ae120290329fd697b50ea9138ffccb65a805 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 1 Apr 2026 13:57:32 +0200 Subject: feat: migrate GPU renderer from WebGL to wgpu/WASM --- rust/crates/gpu/src/shaders/fullscreen.wgsl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rust/crates/gpu/src/shaders/fullscreen.wgsl (limited to 'rust/crates/gpu/src/shaders/fullscreen.wgsl') diff --git a/rust/crates/gpu/src/shaders/fullscreen.wgsl b/rust/crates/gpu/src/shaders/fullscreen.wgsl new file mode 100644 index 00000000..1ef26e48 --- /dev/null +++ b/rust/crates/gpu/src/shaders/fullscreen.wgsl @@ -0,0 +1,12 @@ +struct VertexOutput { + @builtin(position) position: vec4f, + @location(0) tex_coord: vec2f, +} + +@vertex +fn vertex_main(@location(0) position: vec2f) -> VertexOutput { + var output: VertexOutput; + output.position = vec4f(position, 0.0, 1.0); + output.tex_coord = (position * 0.5) + vec2f(0.5, 0.5); + return output; +} -- cgit v1.3.1