Skip to content

Commit

Permalink
Remove DEPTH32FLOAT_STENCIL8 feature requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
kelpsyberry committed Jan 20, 2024
1 parent 68d2b0a commit 037c1a9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/desktop/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ pub fn main() {

let mut window_builder = futures_executor::block_on(window::Builder::new(
"Dust",
wgpu::Features::DEPTH32FLOAT_STENCIL8,
wgpu::Features::empty(),
window::AdapterSelection::Auto(wgpu::PowerPreference::LowPower),
config.config.window_size,
#[cfg(target_os = "macos")]
Expand Down
2 changes: 1 addition & 1 deletion render/wgpu-3d/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ impl OutputAttachments {
mip_level_count: 1,
sample_count: 1,
dimension: wgpu::TextureDimension::D2,
format: wgpu::TextureFormat::Depth32FloatStencil8,
format: wgpu::TextureFormat::Depth24PlusStencil8,
usage: wgpu::TextureUsages::RENDER_ATTACHMENT,
view_formats: &[],
});
Expand Down
2 changes: 1 addition & 1 deletion render/wgpu-3d/src/render/opaque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ pub(crate) fn create_pipeline(
primitive: PRIMITIVE_STATE,

depth_stencil: Some(wgpu::DepthStencilState {
format: wgpu::TextureFormat::Depth32FloatStencil8,
format: wgpu::TextureFormat::Depth24PlusStencil8,
depth_write_enabled: true,
depth_compare: if pipeline.depth_test_equal() {
wgpu::CompareFunction::Equal
Expand Down
4 changes: 2 additions & 2 deletions render/wgpu-3d/src/render/trans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pub(crate) fn create_pipeline(
primitive: PRIMITIVE_STATE,

depth_stencil: Some(wgpu::DepthStencilState {
format: wgpu::TextureFormat::Depth32FloatStencil8,
format: wgpu::TextureFormat::Depth24PlusStencil8,
depth_write_enabled: true,
depth_compare: if pipeline.depth_test_equal() {
wgpu::CompareFunction::Equal
Expand Down Expand Up @@ -211,7 +211,7 @@ pub(crate) fn create_pipeline(
},

depth_stencil: Some(wgpu::DepthStencilState {
format: wgpu::TextureFormat::Depth32FloatStencil8,
format: wgpu::TextureFormat::Depth24PlusStencil8,
depth_write_enabled: true,
depth_compare: if pipeline.depth_test_equal() {
wgpu::CompareFunction::Equal
Expand Down
4 changes: 2 additions & 2 deletions render/wgpu-3d/src/render/trans_no_depth_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub(crate) fn create_pipeline(
primitive: PRIMITIVE_STATE,

depth_stencil: Some(wgpu::DepthStencilState {
format: wgpu::TextureFormat::Depth32FloatStencil8,
format: wgpu::TextureFormat::Depth24PlusStencil8,
depth_write_enabled: true,
depth_compare: if pipeline.depth_test_equal() {
wgpu::CompareFunction::Equal
Expand Down Expand Up @@ -118,7 +118,7 @@ pub(crate) fn create_pipeline(
},

depth_stencil: Some(wgpu::DepthStencilState {
format: wgpu::TextureFormat::Depth32FloatStencil8,
format: wgpu::TextureFormat::Depth24PlusStencil8,
depth_write_enabled: false,
depth_compare: if pipeline.depth_test_equal() {
wgpu::CompareFunction::Equal
Expand Down

0 comments on commit 037c1a9

Please sign in to comment.