Fix ShaderF16Tests skipping on D3D12 when use_dxc is default
ShaderF16Tests::GetRequiredFeatures() only requested ShaderF16 on D3D12
if "use_dxc" appeared in forceEnabledWorkarounds. Since use_dxc became
enabled by default on D3D12 and test instantiations switched to
D3D12Backend() and D3D12Backend({}, {"use_dxc"}), all D3D12
ShaderF16Tests silently skipped.
Rely directly on SupportsFeatures({wgpu::FeatureName::ShaderF16}), since
ValidateFeatureSupportedWithTogglesImpl already rejects ShaderF16 when
use_dxc is disabled on the adapter.
Bug: 454348977, 577702448
Change-Id: I1dc0c9434fc46c5ec7f6c8a59190572b5ba141e2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/358277
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Natalie Chouinard <chouinard@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.