mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-04-12 20:16:34 +00:00
minor cleanup (#6593)
This commit is contained in:
parent
47bfede63f
commit
a0ea3050fd
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user