summaryrefslogtreecommitdiff
path: root/workspaces/test/shaders/passthrough.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'workspaces/test/shaders/passthrough.wgsl')
-rw-r--r--workspaces/test/shaders/passthrough.wgsl18
1 files changed, 0 insertions, 18 deletions
diff --git a/workspaces/test/shaders/passthrough.wgsl b/workspaces/test/shaders/passthrough.wgsl
deleted file mode 100644
index 266e231..0000000
--- a/workspaces/test/shaders/passthrough.wgsl
+++ /dev/null
@@ -1,18 +0,0 @@
-@group(0) @binding(0) var smplr: sampler;
-@group(0) @binding(1) var txt: texture_2d<f32>;
-
-#include "common_uniforms"
-@group(0) @binding(2) var<uniform> uniforms: CommonUniforms;
-
-@vertex fn vs_main(@builtin(vertex_index) i: u32) -> @builtin(position) vec4<f32> {
- var pos = array<vec2<f32>, 3>(
- vec2<f32>(-1, -1),
- vec2<f32>(3, -1),
- vec2<f32>(-1, 3)
- );
- return vec4<f32>(pos[i], 0.0, 1.0);
-}
-
-@fragment fn fs_main(@builtin(position) p: vec4<f32>) -> @location(0) vec4<f32> {
- return textureSample(txt, smplr, p.xy / uniforms.resolution);
-}