summaryrefslogtreecommitdiffstats
path: root/examples/integration_wgpu/src/shader
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-02-24 20:52:10 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-24 20:52:10 +0100
commit368cadd25a8b57ee5c41e45d1abe8d1dfb194c69 (patch)
tree191cb7cc7807a5fe513b3d485b2fda21d3bf0bde /examples/integration_wgpu/src/shader
parent573d27eb52bbfacf1b06983b4282f00eb5265bdc (diff)
parent8059c40142d601588e01c152ce1bb72a1295dde8 (diff)
downloadiced-368cadd25a8b57ee5c41e45d1abe8d1dfb194c69.tar.gz
iced-368cadd25a8b57ee5c41e45d1abe8d1dfb194c69.tar.bz2
iced-368cadd25a8b57ee5c41e45d1abe8d1dfb194c69.zip
Merge pull request #1697 from iced-rs/text-glyphon
Text shaping, font fallback, and `iced_wgpu` overhaul
Diffstat (limited to 'examples/integration_wgpu/src/shader')
-rw-r--r--examples/integration_wgpu/src/shader/frag.wgsl4
-rw-r--r--examples/integration_wgpu/src/shader/vert.wgsl6
2 files changed, 0 insertions, 10 deletions
diff --git a/examples/integration_wgpu/src/shader/frag.wgsl b/examples/integration_wgpu/src/shader/frag.wgsl
deleted file mode 100644
index cf27bb56..00000000
--- a/examples/integration_wgpu/src/shader/frag.wgsl
+++ /dev/null
@@ -1,4 +0,0 @@
-@fragment
-fn main() -> @location(0) vec4<f32> {
- return vec4<f32>(1.0, 0.0, 0.0, 1.0);
-}
diff --git a/examples/integration_wgpu/src/shader/vert.wgsl b/examples/integration_wgpu/src/shader/vert.wgsl
deleted file mode 100644
index e353e6ba..00000000
--- a/examples/integration_wgpu/src/shader/vert.wgsl
+++ /dev/null
@@ -1,6 +0,0 @@
-@vertex
-fn main(@builtin(vertex_index) in_vertex_index: u32) -> @builtin(position) vec4<f32> {
- let x = f32(1 - i32(in_vertex_index)) * 0.5;
- let y = f32(1 - i32(in_vertex_index & 1u) * 2) * 0.5;
- return vec4<f32>(x, y, 0.0, 1.0);
-}