summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wgpu/src/primitive/pipeline.rs4
-rw-r--r--widget/src/shader/event.rs2
-rw-r--r--widget/src/shader/program.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/wgpu/src/primitive/pipeline.rs b/wgpu/src/primitive/pipeline.rs
index b59aeff1..5dbd6697 100644
--- a/wgpu/src/primitive/pipeline.rs
+++ b/wgpu/src/primitive/pipeline.rs
@@ -10,10 +10,10 @@ use std::sync::Arc;
#[derive(Clone, Debug)]
/// A custom primitive which can be used to render primitives associated with a custom pipeline.
pub struct Pipeline {
- /// The bounds of the [`Shader`].
+ /// The bounds of the [`Pipeline`].
pub bounds: Rectangle,
- /// The [`custom::Primitive`] to render.
+ /// The [`Primitive`] to render.
pub primitive: Arc<dyn Primitive>,
}
diff --git a/widget/src/shader/event.rs b/widget/src/shader/event.rs
index a5a7acaa..1cc484fb 100644
--- a/widget/src/shader/event.rs
+++ b/widget/src/shader/event.rs
@@ -8,7 +8,7 @@ pub use crate::core::event::Status;
/// A [`Shader`] event.
///
-/// [`Shader`]: crate::widget::shader::Shader;
+/// [`Shader`]: crate::Shader
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Event {
/// A mouse event.
diff --git a/widget/src/shader/program.rs b/widget/src/shader/program.rs
index 0319844d..6dd50404 100644
--- a/widget/src/shader/program.rs
+++ b/widget/src/shader/program.rs
@@ -9,7 +9,7 @@ use crate::shader;
/// A [`Program`] can mutate the internal state of a [`Shader`] widget
/// and produce messages for an application.
///
-/// [`Shader`]: crate::widget::shader::Shader
+/// [`Shader`]: crate::Shader
pub trait Program<Message> {
/// The internal state of the [`Program`].
type State: Default + 'static;
@@ -50,7 +50,7 @@ pub trait Program<Message> {
/// The interaction returned will be in effect even if the cursor position is out of
/// bounds of the [`Shader`]'s program.
///
- /// [`Shader`]: crate::widget::shader::Shader
+ /// [`Shader`]: crate::Shader
fn mouse_interaction(
&self,
_state: &Self::State,