fix depth texture init with multisampling (#3207)
Co-authored-by: user <email@NEO.com>
This commit is contained in:
parent
f9f9abf749
commit
af6419343d
|
|
@ -279,7 +279,7 @@ impl Painter {
|
||||||
depth_or_array_layers: 1,
|
depth_or_array_layers: 1,
|
||||||
},
|
},
|
||||||
mip_level_count: 1,
|
mip_level_count: 1,
|
||||||
sample_count: 1,
|
sample_count: self.msaa_samples,
|
||||||
dimension: wgpu::TextureDimension::D2,
|
dimension: wgpu::TextureDimension::D2,
|
||||||
format: depth_format,
|
format: depth_format,
|
||||||
usage: wgpu::TextureUsages::RENDER_ATTACHMENT
|
usage: wgpu::TextureUsages::RENDER_ATTACHMENT
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue