Bug 1924328 - feat(webgpu): recognize unimplemented dual-source-blending feature r=webgpu-reviewers,webidl,teoxoy,saschanaz

Differential Revision: https://phabricator.services.mozilla.com/D229829
This commit is contained in:
Erich Gubler
2024-11-24 19:11:48 +00:00
parent c6a146bc48
commit 5c45e35f2f
2 changed files with 5 additions and 0 deletions

View File

@@ -126,6 +126,10 @@ static Maybe<ffi::WGPUFeatures> ToWGPUFeatures(
case dom::GPUFeatureName::Float32_filterable: case dom::GPUFeatureName::Float32_filterable:
return Some(WGPUFeatures_FLOAT32_FILTERABLE); return Some(WGPUFeatures_FLOAT32_FILTERABLE);
case dom::GPUFeatureName::Dual_source_blending:
// TODO: https://bugzilla.mozilla.org/show_bug.cgi?id=1924328
return Nothing(); // Some(WGPUFeatures_DUAL_SOURCE_BLENDING);
} }
MOZ_CRASH("Bad GPUFeatureName."); MOZ_CRASH("Bad GPUFeatureName.");
} }

View File

@@ -141,6 +141,7 @@ enum GPUFeatureName {
"rg11b10ufloat-renderable", "rg11b10ufloat-renderable",
"bgra8unorm-storage", "bgra8unorm-storage",
"float32-filterable", "float32-filterable",
"dual-source-blending",
}; };
[Func="mozilla::webgpu::Instance::PrefEnabled", [Func="mozilla::webgpu::Instance::PrefEnabled",