[D3D12] Implement `chromium_experimental_subgroup_size_control` This patch implements `chromium_experimental_subgroup_size_control` on D3D12 backend. This feature requires at least Shader Model 6.6 for the HLSL attribute `[WaveSize]`. As D3D12 runtime only accept the values between `D3D12_FEATURE_DATA_D3D12_OPTIONS1::waveLaneCountMin` and `D3D12_FEATURE_DATA_D3D12_OPTIONS1::waveLaneCountMax` as `[WaveSize]`, while currently on D3D12 backend we don't always use these two values as `AdapterInfo::subgroupMinSize` or `AdapterInfo::subgroupMaxSize`, we introduce two new limitations (`minExplicitComputeSubgroupSize` and `maxExplicitComputeSubgroupSize`) to provide valid values for `[WaveSize]`. Bug: 463721943 Test: dawn_end2end_tests Change-Id: Ib86a6e2034957b5e1ab5091203d862d981247363 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/284855 Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Shao, Jiawei <jiawei.shao@intel.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.