fix depth texture init with multisampling (#3207)

Co-authored-by: user <email@NEO.com>
This commit is contained in:
mauliu 2023-08-09 20:59:36 +02:00 committed by GitHub
parent f9f9abf749
commit af6419343d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ impl Painter {
depth_or_array_layers: 1,
},
mip_level_count: 1,
sample_count: 1,
sample_count: self.msaa_samples,
dimension: wgpu::TextureDimension::D2,
format: depth_format,
usage: wgpu::TextureUsages::RENDER_ATTACHMENT