commit | 7092786f313d07d3c73ba02bbe3139d4ecc6ed8e | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Wed Jan 11 13:18:29 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 11 13:18:29 2023 +0000 |
tree | 219bb056f0f23edf35a828e11ac072dca340aee0 | |
parent | 5dd9d1dee8b5efe50450b85919932fb10d6e6aef [diff] |
Fixup return of HLSL sign to match WGSL. The HLSL `sign` method returns an `int` result (scalar or vector). The WGSL `sign` expects the result to be the same type as the argument. This CL injects a cast to the correct type after the `sign` call in the HLSL generated source. Bug: tint:1795 Change-Id: I51fed24b5b8b752b6b27fdfb5dd47eb803902793 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116692 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.