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:
@@ -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.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user