Skip to content

Commit

Permalink
Merge pull request #569 from YeongCheon/master
Browse files Browse the repository at this point in the history
fix tutorial8-depth code
  • Loading branch information
sotrh authored Sep 13, 2024
2 parents ccbcfb0 + 97579ea commit bd4f2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/beginner/tutorial8-depth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ impl Texture {

pub fn create_depth_texture(device: &wgpu::Device, config: &wgpu::SurfaceConfiguration, label: &str) -> Self {
let size = wgpu::Extent3d { // 2.
width: config.width,
height: config.height,
width: config.width.max(1),
height: config.height.max(1),
depth_or_array_layers: 1,
};
let desc = wgpu::TextureDescriptor {
Expand Down

0 comments on commit bd4f2b5

Please sign in to comment.