From 936082fafc434d61e2c9a2b6d07d2ecf4be0b148 Mon Sep 17 00:00:00 2001 From: Samuel Hurel Date: Sat, 31 Oct 2020 11:39:50 +0100 Subject: [PATCH] Minor changes --- docs/beginner/tutorial2-swapchain/README.md | 2 +- docs/beginner/tutorial5-textures/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/beginner/tutorial2-swapchain/README.md b/docs/beginner/tutorial2-swapchain/README.md index 624a3456..19ca3004 100644 --- a/docs/beginner/tutorial2-swapchain/README.md +++ b/docs/beginner/tutorial2-swapchain/README.md @@ -369,7 +369,7 @@ wgpu::RenderPassColorAttachmentDescriptor { The `RenderPassColorAttachmentDescriptor` has the `attachment` field which informs `wgpu` what texture to save the colors to. In this case we specify `frame.view` that we created using `swap_chain.get_current_frame()`. This means that any colors we draw to this attachment will get drawn to the screen. -This is the texture that will receive the resolved output. This will be the same as `attachment` unless multisampling is enabled. We don't need to specify this, so we leave it as `None`. +The `resolve_target` is the texture that will receive the resolved output. This will be the same as `attachment` unless multisampling is enabled. We don't need to specify this, so we leave it as `None`. The `ops` field takes a `wpgu::Operations` object. This tells wgpu what to do with the colors on the screen (specified by `frame.view`). The `load` field tells wgpu how to handle colors stored from the previous frame. Currently we are clearing the screen with a bluish color. diff --git a/docs/beginner/tutorial5-textures/README.md b/docs/beginner/tutorial5-textures/README.md index 66c89d62..70842515 100644 --- a/docs/beginner/tutorial5-textures/README.md +++ b/docs/beginner/tutorial5-textures/README.md @@ -193,11 +193,11 @@ let diffuse_bind_group = device.create_bind_group( entries: &[ wgpu::BindGroupEntry { binding: 0, - resource: wgpu::BindingResource::TextureView(&diffuse_texture.view), + resource: wgpu::BindingResource::TextureView(&diffuse_texture_view), }, wgpu::BindGroupEntry { binding: 1, - resource: wgpu::BindingResource::Sampler(&diffuse_texture.sampler), + resource: wgpu::BindingResource::Sampler(&diffuse_sampler), } ], label: Some("diffuse_bind_group"),