From a0ea3050fd12114f7b24de1a8ef9a7509865adbb Mon Sep 17 00:00:00 2001 From: atlv Date: Fri, 22 Nov 2024 20:51:50 -0500 Subject: [PATCH] minor cleanup (#6593) --- wgpu-hal/src/dx12/adapter.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wgpu-hal/src/dx12/adapter.rs b/wgpu-hal/src/dx12/adapter.rs index b6bedce5c..d037adc96 100644 --- a/wgpu-hal/src/dx12/adapter.rs +++ b/wgpu-hal/src/dx12/adapter.rs @@ -293,6 +293,7 @@ impl super::Adapter { } }; + // these should always be available on d3d12 let mut features = wgt::Features::empty() | wgt::Features::DEPTH_CLIP_CONTROL | wgt::Features::DEPTH32FLOAT_STENCIL8 @@ -315,7 +316,8 @@ impl super::Adapter { | wgt::Features::SHADER_PRIMITIVE_INDEX | wgt::Features::RG11B10UFLOAT_RENDERABLE | wgt::Features::DUAL_SOURCE_BLENDING - | wgt::Features::TEXTURE_FORMAT_NV12; + | wgt::Features::TEXTURE_FORMAT_NV12 + | wgt::Features::FLOAT32_FILTERABLE; //TODO: in order to expose this, we need to run a compute shader // that extract the necessary statistics out of the D3D12 result. @@ -403,9 +405,6 @@ impl super::Adapter { atomic_int64_on_typed_resource_supported, ); - // float32-filterable should always be available on d3d12 - features.set(wgt::Features::FLOAT32_FILTERABLE, true); - // TODO: Determine if IPresentationManager is supported let presentation_timer = auxil::dxgi::time::PresentationTimer::new_dxgi();