Skip to content

Commit a0ea305

Browse files
authored
minor cleanup (#6593)
1 parent 47bfede commit a0ea305

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

wgpu-hal/src/dx12/adapter.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ impl super::Adapter {
293293
}
294294
};
295295

296+
// these should always be available on d3d12
296297
let mut features = wgt::Features::empty()
297298
| wgt::Features::DEPTH_CLIP_CONTROL
298299
| wgt::Features::DEPTH32FLOAT_STENCIL8
@@ -315,7 +316,8 @@ impl super::Adapter {
315316
| wgt::Features::SHADER_PRIMITIVE_INDEX
316317
| wgt::Features::RG11B10UFLOAT_RENDERABLE
317318
| wgt::Features::DUAL_SOURCE_BLENDING
318-
| wgt::Features::TEXTURE_FORMAT_NV12;
319+
| wgt::Features::TEXTURE_FORMAT_NV12
320+
| wgt::Features::FLOAT32_FILTERABLE;
319321

320322
//TODO: in order to expose this, we need to run a compute shader
321323
// that extract the necessary statistics out of the D3D12 result.
@@ -403,9 +405,6 @@ impl super::Adapter {
403405
atomic_int64_on_typed_resource_supported,
404406
);
405407

406-
// float32-filterable should always be available on d3d12
407-
features.set(wgt::Features::FLOAT32_FILTERABLE, true);
408-
409408
// TODO: Determine if IPresentationManager is supported
410409
let presentation_timer = auxil::dxgi::time::PresentationTimer::new_dxgi();
411410

0 commit comments

Comments
 (0)