commit | 9fd0633d5186636ed63eb594387fa950321f1b8e | [log] [tgz] |
---|---|---|
author | shaoboyan <shaoboyan@microsoft.com> | Mon Aug 18 03:51:16 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 18 03:51:16 2025 -0700 |
tree | ad73705d75c347dd2315bb6aac1b13d06719255a | |
parent | f2ed4d88c72c7b22f1064c62e1c72d64836f2948 [diff] |
dawn/common: Handle zero input in RoundUp function The RoundUp function previously asserted that n > 0. This change allows n = 0 as input, returning 0 as the result. Change-Id: I48c0a04becb9d5b9b75c08a68805524739f797c6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/257474 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
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.