commit | 0065931e51b275af75f5fc70361015b5e4be5c23 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Tue Jan 21 22:33:55 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 21 22:33:55 2025 -0800 |
tree | 46aae5c2bc68ac8897a9cfd47f4fee15a5825b37 | |
parent | a088acd5ffe8cf0ac59ef9db3236a1a56f6eb168 [diff] |
[spirv-reader][ir] Correctly handle GLSL 450 UClamp The SPIR-V `UClamp` method allows unsigned arguments and return types. This is not permitted in WGSL. The SPIR-V spec states that the argument is treated as a signed value, so bitcast the argument/result as needed. Bug: 42250952 Change-Id: I6839ea1c52e3cef786cba10c3e11dde1fd6f6e12 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/222774 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: David Neto <dneto@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.