mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
DX12 set Features::VERTEX_WRITABLE_STORAGE based on the right FL (#4033)
This commit is contained in:
@@ -96,6 +96,7 @@ By @Valaphee in [#3402](https://github.com/gfx-rs/wgpu/pull/3402)
|
||||
#### DX12
|
||||
|
||||
- DX12 doesn't support `Features::POLYGON_MODE_POINT``. By @teoxoy in [#4032](https://github.com/gfx-rs/wgpu/pull/4032).
|
||||
- Set `Features::VERTEX_WRITABLE_STORAGE` based on the right feature level. By @teoxoy in [#4033](https://github.com/gfx-rs/wgpu/pull/4033).
|
||||
|
||||
### Documentation
|
||||
|
||||
|
||||
@@ -242,7 +242,6 @@ impl super::Adapter {
|
||||
| wgt::Features::ADDRESS_MODE_CLAMP_TO_BORDER
|
||||
| wgt::Features::ADDRESS_MODE_CLAMP_TO_ZERO
|
||||
| wgt::Features::POLYGON_MODE_LINE
|
||||
| wgt::Features::VERTEX_WRITABLE_STORAGE
|
||||
| wgt::Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES
|
||||
| wgt::Features::TIMESTAMP_QUERY
|
||||
| wgt::Features::TIMESTAMP_QUERY_INSIDE_PASSES
|
||||
@@ -258,6 +257,10 @@ impl super::Adapter {
|
||||
// write the results there, and issue a bunch of copy commands.
|
||||
//| wgt::Features::PIPELINE_STATISTICS_QUERY
|
||||
|
||||
if max_feature_level as u32 >= d3d12::FeatureLevel::L11_1 as u32 {
|
||||
features |= wgt::Features::VERTEX_WRITABLE_STORAGE;
|
||||
}
|
||||
|
||||
features.set(
|
||||
wgt::Features::CONSERVATIVE_RASTERIZATION,
|
||||
options.ConservativeRasterizationTier
|
||||
|
||||
Reference in New Issue
Block a user