diff options
author | 2024-04-09 22:25:16 +0200 | |
---|---|---|
committer | 2024-04-09 22:25:16 +0200 | |
commit | 6ad5bb3597f640ac329801adf735d633bf0a512f (patch) | |
tree | f0928edacd09d6537878d22b00ad7ed7829c9ac0 /wgpu/src/primitive.rs | |
parent | 2c6fd9ac14c5d270e05b97b7a7fab811d25834c4 (diff) | |
download | iced-6ad5bb3597f640ac329801adf735d633bf0a512f.tar.gz iced-6ad5bb3597f640ac329801adf735d633bf0a512f.tar.bz2 iced-6ad5bb3597f640ac329801adf735d633bf0a512f.zip |
Port `iced_tiny_skia` to new layering architecture
Diffstat (limited to 'wgpu/src/primitive.rs')
-rw-r--r-- | wgpu/src/primitive.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs index 4ba1ed9a..1313e752 100644 --- a/wgpu/src/primitive.rs +++ b/wgpu/src/primitive.rs @@ -43,7 +43,7 @@ pub struct Instance { } impl Instance { - /// Creates a new [`Pipeline`] with the given [`Primitive`]. + /// Creates a new [`Instance`] with the given [`Primitive`]. pub fn new(bounds: Rectangle, primitive: impl Primitive) -> Self { Instance { bounds, @@ -80,7 +80,7 @@ impl Storage { self.pipelines.get(&TypeId::of::<T>()).map(|pipeline| { pipeline .downcast_ref::<T>() - .expect("Pipeline with this type does not exist in Storage.") + .expect("Value with this type does not exist in Storage.") }) } @@ -89,7 +89,7 @@ impl Storage { self.pipelines.get_mut(&TypeId::of::<T>()).map(|pipeline| { pipeline .downcast_mut::<T>() - .expect("Pipeline with this type does not exist in Storage.") + .expect("Value with this type does not exist in Storage.") }) } } |