diff options
author | 2023-11-14 14:04:54 +0100 | |
---|---|---|
committer | 2023-11-14 14:04:54 +0100 | |
commit | 63f36b04638f14af3455ead8b82d581a438a28a3 (patch) | |
tree | 493381fbc949cb69ddc45102674ec5c4635b5e01 /examples/custom_shader/src/primitive | |
parent | 91d7df52cdedd1b5c431fdb51a6356e827765b60 (diff) | |
download | iced-63f36b04638f14af3455ead8b82d581a438a28a3.tar.gz iced-63f36b04638f14af3455ead8b82d581a438a28a3.tar.bz2 iced-63f36b04638f14af3455ead8b82d581a438a28a3.zip |
Export `wgpu` crate in `shader` module in `iced_widget`
Diffstat (limited to 'examples/custom_shader/src/primitive')
-rw-r--r-- | examples/custom_shader/src/primitive/buffer.rs | 2 | ||||
-rw-r--r-- | examples/custom_shader/src/primitive/cube.rs | 2 | ||||
-rw-r--r-- | examples/custom_shader/src/primitive/vertex.rs | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/examples/custom_shader/src/primitive/buffer.rs b/examples/custom_shader/src/primitive/buffer.rs index 377ce1bb..ef4c41c9 100644 --- a/examples/custom_shader/src/primitive/buffer.rs +++ b/examples/custom_shader/src/primitive/buffer.rs @@ -1,3 +1,5 @@ +use crate::wgpu; + // A custom buffer container for dynamic resizing. pub struct Buffer { pub raw: wgpu::Buffer, diff --git a/examples/custom_shader/src/primitive/cube.rs b/examples/custom_shader/src/primitive/cube.rs index c23f2132..7ece685d 100644 --- a/examples/custom_shader/src/primitive/cube.rs +++ b/examples/custom_shader/src/primitive/cube.rs @@ -1,4 +1,6 @@ use crate::primitive::Vertex; +use crate::wgpu; + use glam::{vec2, vec3, Vec3}; use rand::{thread_rng, Rng}; diff --git a/examples/custom_shader/src/primitive/vertex.rs b/examples/custom_shader/src/primitive/vertex.rs index 6d17aa0f..e64cd926 100644 --- a/examples/custom_shader/src/primitive/vertex.rs +++ b/examples/custom_shader/src/primitive/vertex.rs @@ -1,3 +1,5 @@ +use crate::wgpu; + #[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] #[repr(C)] pub struct Vertex { |