Revert "wgpu: Use `Depth32FloatStencil8` over `Depth24PlusStencil8`"
This reverts commit 37f171de06
.
This commit is contained in:
parent
e121c82b10
commit
b3cdd6dda1
|
@ -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,
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue