diff options
author | 2023-01-06 23:29:38 +0100 | |
---|---|---|
committer | 2023-02-24 13:17:58 +0100 | |
commit | b9a9576207ddfc7afd89da30b7cfc7ca0d7e335c (patch) | |
tree | c0b4489f1e547fc335e6b82025891cefdc671274 /examples/integration/src/shader/vert.wgsl | |
parent | 573d27eb52bbfacf1b06983b4282f00eb5265bdc (diff) | |
download | iced-b9a9576207ddfc7afd89da30b7cfc7ca0d7e335c.tar.gz iced-b9a9576207ddfc7afd89da30b7cfc7ca0d7e335c.tar.bz2 iced-b9a9576207ddfc7afd89da30b7cfc7ca0d7e335c.zip |
Remove `iced_glow`, `glyph-brush`, and `wgpu_glyph` dependencies
Diffstat (limited to 'examples/integration/src/shader/vert.wgsl')
-rw-r--r-- | examples/integration/src/shader/vert.wgsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/integration/src/shader/vert.wgsl b/examples/integration/src/shader/vert.wgsl new file mode 100644 index 00000000..e353e6ba --- /dev/null +++ b/examples/integration/src/shader/vert.wgsl @@ -0,0 +1,6 @@ +@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); +} |