Skip to content

Commit

Permalink
keep the feature disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jinleili committed Sep 19, 2023
1 parent 1ebf4e4 commit 05d1ad0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions wgpu-core/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,17 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
adapter_guard
.get(adapter_id)
.map(|adapter| adapter.raw.features)
.map(|mut features| {
// SHADER_F16 is not supported in naga yet (https://github.com/gfx-rs/naga/issues/1884)
if features.contains(wgt::Features::SHADER_F16) {
features.remove(wgt::Features::SHADER_F16);
}
// BGRA8UNORM_STORAGE is not supported in naga yet (https://github.com/gfx-rs/naga/issues/2195)
if features.contains(wgt::Features::BGRA8UNORM_STORAGE) {
features.remove(wgt::Features::BGRA8UNORM_STORAGE);
}
features
})
.map_err(|_| InvalidAdapter)
}

Expand Down

0 comments on commit 05d1ad0

Please sign in to comment.