Fix documentation of Backend in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2020-05-30 03:03:59 +02:00
parent 96b2afba31
commit 6d73b94e9a

View File

@ -27,9 +27,9 @@ pub struct Backend {
} }
impl Backend { impl Backend {
/// Creates a new [`Renderer`]. /// Creates a new [`Backend`].
/// ///
/// [`Renderer`]: struct.Renderer.html /// [`Backend`]: struct.Backend.html
pub fn new(device: &wgpu::Device, settings: Settings) -> Self { pub fn new(device: &wgpu::Device, settings: Settings) -> Self {
let text_pipeline = let text_pipeline =
text::Pipeline::new(device, settings.format, settings.default_font); text::Pipeline::new(device, settings.format, settings.default_font);
@ -53,12 +53,10 @@ impl Backend {
} }
} }
/// Draws the provided primitives in the given [`Target`]. /// Draws the provided primitives in the given `TextureView`.
/// ///
/// The text provided as overlay will be renderer on top of the primitives. /// The text provided as overlay will be rendered on top of the primitives.
/// This is useful for rendering debug information. /// This is useful for rendering debug information.
///
/// [`Target`]: struct.Target.html
pub fn draw<T: AsRef<str>>( pub fn draw<T: AsRef<str>>(
&mut self, &mut self,
device: &wgpu::Device, device: &wgpu::Device,