From 29a084b1b1dd67f27daf427f65dde21ab7cf9dfd Mon Sep 17 00:00:00 2001 From: Kuroki Keiichiro Date: Sun, 19 Sep 2021 15:19:15 +0900 Subject: [PATCH] Update an explaining comment for its code The code has been updated for wgpu-0.10 (`wgpu::TextureUsage::SAMPLED` -> `wgpu::TextureUsages::TEXTURE_BINDING`), but its comment was not updated at the same time. --- docs/beginner/tutorial5-textures/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/beginner/tutorial5-textures/README.md b/docs/beginner/tutorial5-textures/README.md index 45cea10c..1b2a9fc2 100644 --- a/docs/beginner/tutorial5-textures/README.md +++ b/docs/beginner/tutorial5-textures/README.md @@ -46,7 +46,7 @@ let diffuse_texture = device.create_texture( dimension: wgpu::TextureDimension::D2, // Most images are stored using sRGB so we need to reflect that here. format: wgpu::TextureFormat::Rgba8UnormSrgb, - // SAMPLED tells wgpu that we want to use this texture in shaders + // TEXTURE_BINDING tells wgpu that we want to use this texture in shaders // COPY_DST means that we want to copy data to this texture usage: wgpu::TextureUsages::TEXTURE_BINDING | wgpu::TextureUsages::COPY_DST, label: Some("diffuse_texture"),