mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-18 18:01:37 +00:00
In this patch NumWorkgroupsFromUniform::Config changed to storage std::optional<sem::BindingPoint>, and if it has no value, NumWorkgroupsFromUniform will choose a free binding group, i.e. binding 0 of the largest used group plus 1 is used if at least one resource is bound, otherwise group 0 binding 0 is used. Tint CLI is also changed to provide a --hlsl-root-constant-binding-point option allowing user to specify the binding point for num_workgroups uniform buffer. Bug: tint:1566 Change-Id: I3b8c22a4276bab722d901f5b07d23a268786c417 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91980 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>