summaryrefslogtreecommitdiffstats
path: root/wgpu/src/shader
diff options
context:
space:
mode:
authorLibravatar Bingus <shankern@protonmail.com>2023-06-14 11:10:09 -0700
committerLibravatar Bingus <shankern@protonmail.com>2023-06-14 11:10:09 -0700
commitd955b3444da19e24bf0de6d6f432f06623ed5db2 (patch)
treed834b01e6d2b45267b77519c9201ea47e0ed76b3 /wgpu/src/shader
parentaf099fa6d72d9c3e23c85a36aee14904526d02f0 (diff)
downloadiced-d955b3444da19e24bf0de6d6f432f06623ed5db2.tar.gz
iced-d955b3444da19e24bf0de6d6f432f06623ed5db2.tar.bz2
iced-d955b3444da19e24bf0de6d6f432f06623ed5db2.zip
Replaced offscreen_blit.wgsl with existing blit.wgsl.
Diffstat (limited to 'wgpu/src/shader')
-rw-r--r--wgpu/src/shader/offscreen_blit.wgsl27
1 files changed, 0 insertions, 27 deletions
diff --git a/wgpu/src/shader/offscreen_blit.wgsl b/wgpu/src/shader/offscreen_blit.wgsl
deleted file mode 100644
index 08952d62..00000000
--- a/wgpu/src/shader/offscreen_blit.wgsl
+++ /dev/null
@@ -1,27 +0,0 @@
-@group(0) @binding(0) var frame_texture: texture_2d<f32>;
-@group(0) @binding(1) var frame_sampler: sampler;
-
-struct VertexInput {
- @location(0) v_pos: vec2<f32>,
- @location(1) texel_coord: vec2<f32>,
-}
-
-struct VertexOutput {
- @builtin(position) clip_pos: vec4<f32>,
- @location(0) uv: vec2<f32>,
-}
-
-@vertex
-fn vs_main(input: VertexInput) -> VertexOutput {
- var output: VertexOutput;
-
- output.clip_pos = vec4<f32>(input.v_pos, 0.0, 1.0);
- output.uv = input.texel_coord;
-
- return output;
-}
-
-@fragment
-fn fs_main(input: VertexOutput) -> @location(0) vec4<f32> {
- return textureSample(frame_texture, frame_sampler, input.uv);
-} \ No newline at end of file