[dawn][native] Don't handle availability in timestamp quantization shader The timestamp quantization shader was used both to quantize, normalize (to ns values) and zero-out timestamps in the query resolve buffer. The zeroing-out was redundant because all backends either have guarantees from the target API that the queries not available are 0, or have special handling in the backend to zero-out unavailable queries already. Remove that logic to simplify things a bit. This also allows removing TimestampParams::first. The dispatch for the quantization is also updated to be sized for exactly the number of queries that are resolved instead of running on the whole buffer. Bug: 499140183 Change-Id: I9b53b595c406d7e3fe05f1405010d64428d133f5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/305055 Reviewed-by: Brandon Jones <bajones@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: 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.