Update docs

This commit is contained in:
Jay Oster 2019-10-04 22:48:29 -07:00
parent b7d1623e67
commit 2847a8bd39

View file

@ -31,10 +31,10 @@ pub type BoxedRenderPass = Box<dyn RenderPass>;
pub trait RenderPass { pub trait RenderPass {
/// This method will be called when the input [`wgpu::TextureView`] needs to be rebinded. /// This method will be called when the input [`wgpu::TextureView`] needs to be rebinded.
/// ///
/// A [`wgpu::TextureView`] is provided to the `RenderPass` constructor as an input texture /// A [`wgpu::TextureView`] is provided to the `RenderPass` factory as an input texture with
/// with the original [`SurfaceTexture`] size. This method is called in response to resizing /// the original [`SurfaceTexture`] size. This method is called in response to resizing the
/// the [`SurfaceTexture`], where your `RenderPass` impl can update its input texture for the /// [`SurfaceTexture`], where your `RenderPass` impl can update its input texture for the new
/// new size. /// size.
/// ///
/// [`Pixels`]: ./struct.Pixels.html /// [`Pixels`]: ./struct.Pixels.html
/// [`SurfaceTexture`]: ./struct.SurfaceTexture.html /// [`SurfaceTexture`]: ./struct.SurfaceTexture.html