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
co-authored by user
parent f9f9abf749
commit af6419343d
+1 -1
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