Revert "wgpu: Use `Depth32FloatStencil8` over `Depth24PlusStencil8`"

This reverts commit 37f171de06.
This commit is contained in:
relrelb 2022-11-03 09:37:59 +02:00 committed by relrelb
parent e121c82b10
commit b3cdd6dda1
3 changed files with 3 additions and 3 deletions

View File

@ -586,7 +586,7 @@ async fn request_device(
.request_device( .request_device(
&wgpu::DeviceDescriptor { &wgpu::DeviceDescriptor {
label: None, label: None,
features: wgpu::Features::DEPTH32FLOAT_STENCIL8, features: wgpu::Features::DEPTH24PLUS_STENCIL8,
limits, limits,
}, },
trace_path, trace_path,

View File

@ -232,7 +232,7 @@ fn create_shape_pipeline(
shader, shader,
&pipeline_layout, &pipeline_layout,
Some(wgpu::DepthStencilState { Some(wgpu::DepthStencilState {
format: wgpu::TextureFormat::Depth32FloatStencil8, format: wgpu::TextureFormat::Depth24PlusStencil8,
depth_write_enabled: false, depth_write_enabled: false,
depth_compare: wgpu::CompareFunction::Always, depth_compare: wgpu::CompareFunction::Always,
stencil: wgpu::StencilState { stencil: wgpu::StencilState {

View File

@ -64,7 +64,7 @@ impl DepthTexture {
mip_level_count: 1, mip_level_count: 1,
sample_count: msaa_sample_count, sample_count: msaa_sample_count,
dimension: wgpu::TextureDimension::D2, dimension: wgpu::TextureDimension::D2,
format: wgpu::TextureFormat::Depth32FloatStencil8, format: wgpu::TextureFormat::Depth24PlusStencil8,
usage: wgpu::TextureUsages::RENDER_ATTACHMENT, usage: wgpu::TextureUsages::RENDER_ATTACHMENT,
}); });